Re: KDE 4.4.3 upgrade eats 141 MB of /home
On Saturday 15 May 2010, Nicolas Alvarez wrote:
> Allan Sandfeld Jensen wrote:
> > On Thursday 13 May 2010, Nicolas Alvarez wrote:
> >> As a KDE4.3 user with 1TB of disk, I'm way more annoyed at
> >> kio_http_cache_cleaner starting regularly and eating my computer's I/O
> >> than the HTTP cache growing big. I can easily notice when the the cache
> >> cleaner is running from the HD light, the HD noise, and the general
> >> system lag.
> >>
> >> There *has* to be a better way to clean an HTTP cache than to stat every
> >> single file in the cache to then delete a tiny fraction of them. Someone
> >> told me 4.4 improved in this area, but I don't know specifics, and
> >> remain skeptical.
> >
> > If stat updates the files' atime, you may get a lot better performance by
> > simply mounting the relevant partition with relatime or noatime (which
> > for some reason is still not default).
>
> After some stracing: It doesn't just stat the files. It first stats, then
> actually opens the files and *reads* the first few bytes of all of them
> (where the HTTP cache information is stored).
Yes, the header contains the http expire date there is no other way to get it.
Though I would have thought it would keep the statistics in memory instead of
rereading it on every cycle. Are you sure that this isn't just on startup?
`Allan
Reply to: