monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] [PATCH] pre-cache database file to improve response


From: Joe Wilson
Subject: Re: [Monotone-devel] [PATCH] pre-cache database file to improve response time
Date: Sat, 18 Mar 2006 21:30:10 -0800 (PST)

--- Ulrich Drepper <address@hidden> wrote:
> Joe Wilson wrote:
> > Here's a patch to improve the speed of many database-intensive monotone 
> > commands.
> > 
> > It can shave 70% of the time off of a (cold) checkout, for example.
> 
> It might, but it does so violently.  It's forcing other data out of the
> caches.

Certainly much less violently than having a big monotone operation 
randomly hit the disk for several extra minutes.
Admittedly, it's crude, but it will work on most operating systems 
(including Windows). If a faster, more portable and more elegant
way can be found, then it should be used. Until then, there's no
harm in using this simple and easy to revert patch.

> Modern OSes have support for hints to the OS.  For mmap() calls on
> Linux, there is the MAP_POPULATE flag.  For all file operations, there
> is posix_fadvise().

SQLite does not use mmap() - just basic read()s and write()s for
portability. Can the system calls you mention be made to work
with Monotone without altering SQLite's library code?
(Does Windows natively support mmap()?)

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]