Re: [HEADS UP] upcoming /etc/services updating




On Sat, 29 Apr 2006, Ceri Davies wrote:

I think, that "perform-actual-lookups" mode should also be enabled for "services" by default in cached.conf - so that the cache for services information would be the same for all users.

So "perform-actual-lookups" essentially creates a system-wide cache?

Besides, as services information changes extremely rarely, I'd also suggest putting greater TTL values for "services" in the cached.conf.

Yes, the services cache could always be flushed by the superuser after changing the services data source.

Very few sites use distributed services databases (at least, that I've ever seen). Performing stat() on /etc/services to check the last modification date is pretty light-weight, and probably worth doing. What you don't want is someone modifying /etc/services, restarting the daemon immediately, and having it fail due to an added service not being found. Likewise for other local databases.

BTW, since this is in the context of significantly increasing the size of the services database, have we:

(1) Measured what impact adding the cache daemon for local databases has?
Specifically, does adding the cache daemon for a database like
/etc/services, /etc/passwd, etc, improve performance, or add overhead?

(2) Looked at adding /etc/services.db, similar to the other compiled database
pieces, in order to improve lookup times for very large tables. This
change would be orthoganal to a cache daemon.

Robert N M Watson
_______________________________________________
freebsd-arch@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • [HPADM] nscd like daemon in HP-UX
    ... On SUN Platform nscd provides caching for the passwd, group, ... prof_attr,and user_attr databases through standard libc interfaces, such as gethostbyname ... causes that cache to become invalidated within ten seconds. ... loss or damage arising from the use of the information transmitted by this ...
    (HP-UX-Admin)
  • Re: How Ingres handles process crashes?
    ... Ingres server processes can be configured to serve specific ... databases or all the databases in the installation. ... They therefore have to share a data cache ... for cache sharing so that I can start up another iidbms process any time I ...
    (comp.databases.ingres)
  • Re: Memory Recommendations for 8-way Server
    ... up to 16 GB of memory. ... Have you monitored the Buffer Cache Hit Ration? ... Most good judgment comes from experience. ... How many databases, how large are the databases, how many users on each ...
    (microsoft.public.sqlserver.setup)
  • Re: O_DIRECT question
    ... because it can't guarantee that the page will be thrown out of the page ... You'd still be MUCH better off using the page cache, ... trivial to do on the filesystem level, especially for something like NFS. ... Writes are not the real problem here since shared databases typically do ...
    (Linux-Kernel)
  • Re: Should Cache be on the MV Family Tree?
    ... > Will the Cache' product have functional DataBASIC or multivalue query ... objects, Java, hot-standby databases, distributed databases, encrypted ... > Is there a name for the Basic or query languages yet? ...
    (comp.databases.pick)