這是一套類似partition magic的軟體,可以幫您重新reisze您的partition,而且不會遺失資料,由於是圖形化操作,我就不囉嗦了。






FSCache is a generic caching manager in the Linux kernel which can be used by network and other filesystems to cache data locally. FSCache是linux kernel中一個通用的cache管理者,用於管理網路和其他檔案系統的cache。 CacheFiles is an FSCache backend that's meant to use as a cache a directory on an already mounted filesystem of a local type (such as Ext3). This package installs the userspace support required by the cachefiles backend.在ubuntu中即便安裝了cachefilesd,nfs還是無法使用cache機制,所以要重先編譯一下kernel module。將CONFIG_NFS_FSCACHE=y才能讓nfs支援cachefilesd。
tune2fs -o user_xattr /dev/sdaX sudo mount /var/cache/fscache
sudo mount -o fsc 10.0.100.11:/opt /opt
brook@ubuntu1:~$ wget http://kr.archive.ubuntu.com/ubuntu/pool/main/q/quota/quota_3.17-3ubuntu1_i386.deb --2009-10-19 16:09:14-- http://kr.archive.ubuntu.com/ubuntu/pool/main/q/quota/quota_3.17-3ubuntu1_i386.deb Resolving kr.archive.ubuntu.com... 143.248.234.110 Connecting to kr.archive.ubuntu.com|143.248.234.110|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 473516 (462K) [application/x-debian-package] Saving to: `quota_3.17-3ubuntu1_i386.deb' 100%[======================================>] 473,516 490K/s in 0.9s 2009-10-19 16:09:17 (490 KB/s) - `quota_3.17-3ubuntu1_i386.deb' saved [473516/473516] brook@ubuntu1:~$ sudo dpkg --purge quota (Reading database ... 112680 files and directories currently installed.) Removing quota ... * Turning off quotas... [ OK ] * Stopping quota service rpc.rquotad [ OK ] Purging configuration files for quota ... Processing triggers for man-db ... brook@ubuntu1:~$ sudo apt-get autoremove Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. brook@ubuntu1:~$ sudo dpkg -i quota_3.17-3ubuntu1_i386.deb Selecting previously deselected package quota. (Reading database ... 112624 files and directories currently installed.) Unpacking quota (from quota_3.17-3ubuntu1_i386.deb) ... Setting up quota (3.17-3ubuntu1) ... * Checking quotas... [ OK ] * Turning on quotas... [ OK ] * Starting quota service rpc.rquotad [ OK ] Processing triggers for man-db ... brook@ubuntu1:~$ sudo mount -o remount /home [sudo] password for brook:
JOBS | 64-bit(sec) | 32-bit(sec) |
default(4) | 479.567 | 451.847 |
6 | 426.922 | 400.545 |
8 | 400.724 | 370.174 |
10 | 393.842 | 363.798 |
12 | 391.594 | 361.957 |
64-bit | 32-bit | ||
Dhrystone 2 without register variables | 22989948.3 | 15872890.4 | lps |
Dhrystone 2 using register variables | 23031345.5 | 15525587.1 | lps |
Arithmetic Test (type = register) | 3795084.9 | 3800669.2 | lps |
Arithmetic Test (type = short) | 3792994 | 3475120.4 | lps |
Arithmetic Test (type = int) | 3798887.6 | 3795243.4 | lps |
Arithmetic Test (type = long) | 1361641.8 | 3797989.6 | lps |
Arithmetic Test (type = float) | 2999814.7 | 1755172.6 | lps |
Arithmetic Test (type = double) | 1908910.6 | 1755790.4 | lps |
System Call Overhead Test | 5310434.8 | 4194268.7 | lps |
Pipe Throughput Test | 2713396.7 | 2364773.8 | lps |
Pipe-based Context Switching Test | N/A | 421790.3 | |
Process Creation Test | 13766.1 | 14274.1 | lps |
Execl Throughput Test | 4028.2 | 4128.9 | lps |
File Read (10 seconds) | 8619286 | 7545589 | KBps |
File Write (10 seconds) | 1519095 | 1453324 | KBps |
File Copy (10 seconds) | 79768 | 91090 | KBps |
File Write (30 seconds) | 1515752 | N/A | KBps |
File Copy (30 seconds) | 89420 | N/A | KBps |
C Compiler Test | 1826.8 | 1863 | lpm |
Shell scripts (1 concurrent) | 8495.3 | 15928.3 | lpm |
Shell scripts (2 concurrent) | 6293.3 | 12343.3 | lpm |
Shell scripts (4 concurrent) | 4276.7 | 7584.6 | lpm |
Shell scripts (8 concurrent) | 2818 | 5387 | lpm |
Dc: sqrt(2) to 99 decimal places | 593737.4 | 625083.3 | lpm |
Recursion Test--Tower of Hanoi | 244750.3 | 168275.4 | lps |
Arithmetic Test (type = double) | 751 | 690.8 | |
Dhrystone 2 without register variables | 1027.9 | 709.7 | |
Execl Throughput Test | 244.1 | 250.2 | |
File Copy (30 seconds) | 499.6 | N/A | |
Pipe-based Context Switching Test | 0 | 319.9 | |
Shell scripts (8 concurrent) | 704.5 | 1346.8 |
// Provide the XMLHttpRequest class for IE 5.x-6.x:
// Other browsers (including IE 7.x-8.x) ignore this
// when XMLHttpRequest is predefined
if (typeof(XMLHttpRequest) == "undefined")
{
XMLHttpRequest = function() {
try { return new ActiveXObject("Msxml2.XMLHTTP.6.0"); }
catch(e) {}
try { return new ActiveXObject("Msxml2.XMLHTTP.4.0"); }
catch(e) {}
try { return new ActiveXObject("Msxml2.XMLHTTP.3.0"); }
catch(e) {}
try { return new ActiveXObject("Msxml2.XMLHTTP"); }
catch(e) {}
try { return new ActiveXObject("Microsoft.XMLHTTP"); }
catch(e) {}
throw new Error("This browser does not support XMLHttpRequest.");
};
}
xmlHttpRequest = new XMLHttpRequest();
有了XMLHttpRequest之後,我們就可以送出request並且處理資料xmlHttpRequest.onreadystatechange = function () { //處理來自Server的回應
if(xmlHttpRequest.readyState==4) {
alert(xmlHttpRequest.responseText); // Server回應的內容
// 如果回傳的是XML資料可以使用responseXML
}
}
xmlHttpRequest.open("GET","my.php", true);
// 設定送出的method(GET/POST), 以及對象(URL)
// 基於安全考量,你不能呼叫不同網域的網頁。如果網域不同時會出現「權限不足,拒絕存取」的錯誤。
// 第三個參數設定此request是否不同步進行,如果設定為TRUE,則即使伺服器尚未回傳資料,也會繼續執行其餘的程式。
xmlhttp.send(null); // 送出request
State | Description |
---|---|
0 | The request is not initialized |
1 | The request has been set up |
2 | The request has been sent |
3 | The request is in process |
4 | The request is complete |