close
Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": /usr/lib/python2.7/dist-packages/libsvn/_delta.so: failed to map segment from shared object: Cannot allocate memory). Look in the Trac log for more information.
- Timestamp:
-
Aug 22, 2010, 10:05:51 PM (15 years ago)
- Author:
-
jazz
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v24
|
v25
|
|
| 64 | 64 | |
| 65 | 65 | * Cache Memroy - [參考] [http://www.codemud.net/~thinker/GinGin_CGI.py/show_id_doc/419 回收 Linux cached memory] |
| 66 | | * 設定 vm.drop_caches 觸發 kernel 回收用於 cache 的記憶體。 |
| | 66 | * 設定 vm.drop_caches 觸發 kernel 回收用於 cache 的記憶體。 至於 1, 2, 3 的等級,可參考 [http://www.linuxinsight.com/proc_sys_vm_drop_caches.html LinuxInsight 的說明] |
| | 67 | * 1: free pagecache |
| | 68 | * 2: free dentries and inodes |
| | 69 | * 3: free pagecache, dentries and inodes |
| 67 | 70 | {{{ |
| 68 | 71 | echo 1 > /proc/sys/vm/drop_caches |
| 69 | | or |
| | 72 | }}} |
| | 73 | {{{ |
| 70 | 74 | sysctl -w vm.drop_caches=1 |
| 71 | 75 | }}} |