Re: memory usage
Also, something odd: say I have a big file /tmp/foo
$ cat /tmp/foo > /dev/null
... "inactive" grows in vmstat, takes some time...
$ cat /tmp/foo > /dev/null
takes almost no time since it's all cached.
$ find /var/log -printf ""
... "inactive" falls down to the original value
$ cat /tmp/foo > /dev/null
... "inactive" grows in vmstat again, takes some time...
It looks like resolving directories/files entries somehow flushes out
the page cache. There actually doesn't seem to be any caching for
directories/files: find /var/log always reads from the disk (the led
flashes).
Samuel
Reply to: