[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#176189: openoffice.org prelinking - is it really much faster?



A levelezőm azt hiszi, hogy Chris Halls a következőeket írta:
> 
> Does anyone know a good way to clear all these caches, except from the
> obvious reboot cycle?  I tried deleting and reinstalling openoffice.org-bin,
> but that didn't seem to slow it down much.

You have to create a memory pressure to flush out the asynchronous
buffer cache.  One way might be to allocate memory
while you can: 

main() { while(1) { malloc(100000); } }

(the process will be killed at the end)

Another way is to set appropriate values in /proc. I can remember that
you can set the amount of memory which is available to the kernel. You set
this value to be some less than the amount of the useable physical memory
(I guess memtotal in /proc/meminfo), wait some seconds, and set the value
back. I did not try this way, because I cannot remember what to be set and where,
maybe /proc/sys/vm/bdflush or /proc/sys/vm/kswapd.


-- 
GNU GPL: csak tiszta forrásból



Reply to: