* :: Patrick Tracanelli :: <[EMAIL PROTECTED]> [010803 10:51] wrote:
> Hello you all;
> I want to know if there is a working way to keep FreeBSD's user database 
> loaded in memory. The reason's for that is very clear, if i keep my spwd.db 
> loaded the access to it won't be a disk access, so this will speedup any 
> forms of authentication...
> The reason is that i want to avoid SQL databases in some cases where the 
> system database works better to me. I have calculated that a database 
> amount of 3000 (+/-) users would need about 7.6MB of memory, what sounds 
> very good to me...
> If there isn't a way to it, yet, that is something i would love to see when 
> -CURRENT becomes -RELEASE... it's an idea :)

The filesystem cache should keep the database in memory as long as
there is no pressure on the cache, otherwise it may evict the file.

If you _really_ want to keep it in memory what I would suggest is
writing a daemon that monitors the size of the file and keeps
it both mmap(2)'s and mlocked(2), this would be trivial to do and
would force the system to keep the file in memory.

-Alfred Perlstein [[EMAIL PROTECTED]]
Ok, who wrote this damn function called '??'?
And why do my programs keep crashing in it?

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to