public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Is there a way to turn file caching off ?
@ 2001-04-17 16:37 Laurent Chavet
  2001-04-18  4:56 ` David Schwartz
  2001-04-18 11:49 ` Bjorn Wesen
  0 siblings, 2 replies; 10+ messages in thread
From: Laurent Chavet @ 2001-04-17 16:37 UTC (permalink / raw)
  To: linux-kernel

Hi,

I'm running on a machine with 2GB of memory and dual PIII 550MHZ.
Just after boot with "nothing else running":
I run a program that almost like dd if=/dev/null of=/local/test
count=10000 bs=1000000
Except that there is a thread for reading and a thread for writing.
The program itself almost doesn't take any CPU.
What's going on is top showing:
    First cache grows to the size of RAM (2GB) with transfer rate
slowing down as the cache grows.
    Then the transfer rates drops a lot (2 to 3 time slower than the
drive capacity) and there is a very high CPU usage of system time (more
than a CPU) used by bdflush and kswapd (and some others like kupdated).

Of course my real application doesn't go from /dev/zero to file but it
still only does sequential access, and it seems that I pay a high price
for the file caching when I'm not using it at all.

Is there a way to turn file caching off, or at least limit its size ?

Thanks,

Laurent Chavet


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2001-04-19 18:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-17 16:37 Is there a way to turn file caching off ? Laurent Chavet
2001-04-18  4:56 ` David Schwartz
2001-04-18 11:49 ` Bjorn Wesen
2001-04-18 13:43   ` Jeremy Jackson
2001-04-18  9:56     ` Very bad behavior of kswapd Laurent Chavet
2001-04-18 18:52       ` Rik van Riel
2001-04-18 19:15         ` David S. Miller
2001-04-19  8:21     ` Is there a way to turn file caching off ? Helge Hafting
2001-04-19 16:15       ` Jeremy Jackson
2001-04-19 18:01       ` John Lenton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox