[Tfug] Purging the Linux Cache

A. Chris Hilton lists at particlewars.com
Wed Apr 16 12:17:46 MST 2008


>From 2.6.16 on you can do this with /proc/sys/vm/drop_caches.

1 free pagecache
2 free dentries and inodes
3 free pagecache, dentries and inodes

Run sync first and set the value back to 0 when you are finished.

-C-

> Is there any way to purge the Linux cache?  I find no Linux utilities or
> header files.
>
>
> free
>              total       used       free     shared    buffers     cached
> Mem:        516240     398852     117388          0      31992     294308
> -/+ buffers/cache:      72552     443688
> Swap:      2064304         24    2064280
>
>
> Felix in Tucson
>
>
>
> _______________________________________________
> Tucson Free Unix Group - tfug at tfug.org
> Subscription Options:
> http://www.tfug.org/mailman/listinfo/tfug_tfug.org
>
>






More information about the tfug mailing list