[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mmap investigations



On Thu, Nov 13, 2008 at 07:25:28PM +0200, "Eugene V. Lyubimkin" <jackyf.devel@gmail.com> was heard to say:
> Daniel Burrows wrote:
> > If you're going to spend time on fixing how apt accesses its files,
> > I personally would suggest eliminating the use of mmap altogether,
> Heh. I wish it was so simple :) Apt using mmap for fast-accessible cache in
> memory to put various small chunks of info. Using of new/delete should lead to
> great speeddown of work.

  I didn't say to use new/delete.  I said to get rid of mmap'ing the
whole file and just read bits as you need them.  It seems pretty clear
to me that mmap() on this large a file is just a fragile design.  (both
from my work with apt and other coding I've done)

  Daniel


Reply to: