Linux: December 2008 Archives

Linux Drop Caches

| | Comments (4)

Kernels 2.6.16 以後的版本, 可藉由以下指令釋放出 Caches 佔住的記憶體

# echo 1 > /proc/sys/vm/drop_caches
To free dentries and inodes:

# echo 2 > /proc/sys/vm/drop_caches
To free pagecache, dentries and inodes:

# echo 3 > /proc/sys/vm/drop_caches
As this is a non-destructive operation and dirty objects are not freeable, the user should run "sync" first!

ref. Drop Caches - linux-mm.org Wiki

Mount Linux LVM Partition

| | Comments (0)

要先裝 lvm2 套件

用 lvscan 或 lvdisplay 看一下有那些 VolGroup,
再用 vgchange 設為 active, 使 Kernel 看得到,
例如: vgchange VolGroup00 -a y
此步驟很重要, 指令下完才會有 VolGroup device node,
此時用 lvscan 就會看到 ACTIVE
最後就可以 mount 了
mount /dev/VolGroup00/LogVol00 /mnt

March 2009

Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

About this Archive

This page is a archive of entries in the Linux category from December 2008.

Linux: October 2008 is the previous archive.

Linux: March 2009 is the next archive.

Find recent content on the main index or look in the archives to find all content.