Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Sep 1999 09:44:28 -0600
From:      Warner Losh <imp@village.org>
To:        Kevin Day <toasty@dragondata.com>
Cc:        dillon@apollo.backplane.com (Matthew Dillon), dcs@newsguy.com (Daniel C. Sobral), hackers@FreeBSD.ORG
Subject:   Re: Idea: disposable memory 
Message-ID:  <199909231544.JAA41405@harmony.village.org>
In-Reply-To: Your message of "Thu, 23 Sep 1999 09:33:08 CDT." <199909231433.JAA61714@celery.dragondata.com> 
References:  <199909231433.JAA61714@celery.dragondata.com>  

next in thread | previous in thread | raw e-mail | index | archive | help
In message <199909231433.JAA61714@celery.dragondata.com> Kevin Day writes:
: I'm now playing with compressed data streams. The decompression is slow, so
: I'd like to cache the *decompressed* version of these files. I end up
: allocating large amounts of ram in one process to cache the decompressed
: data. This is a disavantage over the above scenario, since now the system
: swaps out my decompressed data when more ram is needed elsewhere. Swapping
: out then swapping back in my decompressed data is about 4x slower than just
: re-reading my compressed stream and decompressing it again.

Sounds like a short term fix might be to store the decompressed files
on the md device that phk just checked in.  However, while better in
some ways than what you are doing now, it is worse in others.  There
is also a memory filesystem as well.

However, neither is quite what you are aksing for because the cache
doesn't get tossed. automatically.

Warner


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199909231544.JAA41405>