[lkml]   [2001]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Kernel 2.4.16 & Heavy I/O
war war wrote:
> Issue:
> Is it possible to set the disk cache size to a higher value to avoid
> temporary freezing while untarring large files? Memory is not an
> issue, I have plenty of it.

Absolutely all free memory may be used for disk caching. So
no, you can't get a bigger cache because it is already at
the highest possible setting. You don't have more memory
for this - all is used already.

> The disk drive is a good drive, does
> 29.2MB/s sustained in single user mode, 25MB/s when I have a lot of
> processes open. Here is what I think is going on. Sometimes, when I
> untar things, or do things that consume a lot of disk space rapidly,
> they do it VERY quickly, and then the disk rumbles on for 5-20
> seconds after it is done. What accounts for this?
This is exactly what you should expect with lots of cache:
You run a big untar.
This is written straight to the disk cache RAM, that's why
it finishes very fast. Because it isn't really on disk -
it is in the cache.
You may go on doing other work, the tar is over. But the
data have to get to disk too, not only the cache. That's
the rumbling you notice - stuff being written from cache
onto the disk itself.

> In essence, the 'tar' command is finished, however, 30-60 seconds
> after it has finished, it is actually still decompressing the data to
> the file on the disk.
It isn't decompressing, merely writing. All decompressing etc.
that "tar" does is done - but the stuff went into your (big)
disk cache. What you hear is the uncompressed stuff being
written from cache to disk.

Of course the files are instantly useable even when they aren't yet
written to disk. This because you actually get stuff from the cache,
never from the disk itself.

> I have not tested ALL kernels for when or where this has started, but
> could someone provide a further explanation as to why the disk
> scheduluer works like this?
It always worked this way. Forever.

> On Solaris, when I untar a file, the disk stops grinding when the tar
> process is finished, and the system is totally usuable.

Synchronously mounted then. Worse performance, but safer if you
have the bad habit of turning the machine off when you
_believe_ it is finished.

You can force this behaviour under linux too - use
"sync" to force synchronization when you feel you need it.
Or mount syncrhonously - but then you take a performance
hit all the time.

> With Linux, when I untar the file, the system may completely lock up
> for 3-5 seconds during the duration after the initial untar (which is
> 30-60 seconds) after the untar processes has ended.

Some disk systems are cpu intensive. SCSI (or properly
tuned IDE using (u)dma and irq unmasking) is much better.

Helge Hafting
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:13    [W:0.094 / U:2.708 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site