close
Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": /usr/lib/python2.7/dist-packages/libsvn/_core.so: failed to map segment from shared object: Cannot allocate memory). Look in the Trac log for more information.
- Timestamp:
-
Aug 22, 2010, 1:57:53 AM (15 years ago)
- Author:
-
jazz
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v18
|
v19
|
|
| 39 | 39 | echo "kernel.shmmni = 4096" >> /etc/sysctl.conf |
| 40 | 40 | }}} |
| | 41 | |
| | 42 | * Cache Memroy - |
| | 43 | * 設定 vm.drop_caches 觸發 kernel 回收用於 cache 的記憶體。 |
| | 44 | {{{ |
| | 45 | echo 1 > /proc/sys/vm/drop_caches |
| | 46 | or |
| | 47 | sysctl -w vm.drop_caches=1 |
| | 48 | }}} |
| | 49 | * 設定 vm.vfs_cache_pressure 使 kernel 更勤於回收 cache。 |
| | 50 | {{{ |
| | 51 | sysctl -w vm.vfs_cache_pressure=n (n > 100) |
| | 52 | ]}} |
| 41 | 53 | |
| 42 | 54 | == System Performance Tuning : File System == |