public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
From: "carlos at redhat dot com" <sourceware-bugzilla@sourceware.org> To: glibc-bugs@sourceware.org Subject: [Bug nscd/16104] New: nscd statistics are inaccurate when local client searches cache. Date: Thu, 31 Oct 2013 05:13:00 -0000 [thread overview] Message-ID: <bug-16104-131@http.sourceware.org/bugzilla/> (raw) https://sourceware.org/bugzilla/show_bug.cgi?id=16104 Bug ID: 16104 Summary: nscd statistics are inaccurate when local client searches cache. Product: glibc Version: 2.19 Status: NEW Severity: normal Priority: P2 Component: nscd Assignee: unassigned at sourceware dot org Reporter: carlos at redhat dot com CC: drepper.fsp at gmail dot com A local client making use of nscd may request via GETFDPW, GETFDGR, GETFDHST, GETFDSERV, or GETFDNETGR that an mmap-able fd of the entire cache be made available such that that client can search the cache itself. This behaviour is the fast path and allows the client to offload some processing from the server process to the client process, and is in general faster than waiting for an nscd worker thread to complete the lookup. The problem is that if a positive hit or negative hit is found in the cache there is no way to update the server statistics on the successful hit and therefore in some cases the server statistics are completely inaccurate. I do not suggest that we slow down the fast path, but the server did receive one of the GETFD* request packets and therefore should have been able to record receiving one of those and display that as a statistic. I propose we display: %d number of client-side cache searches This way if you run `getent netgroup foo' in a loop you will at least see this statistic incrementing showing that the client's are doing all the lookups. Obviously a failed search via the client of the memory mapped cache means that the client must fall back on having nscd do the actual lookup and that will show up in the statistics (usually as a positive cache miss). -- You are receiving this mail because: You are on the CC list for the bug.
next reply other threads:[~2013-10-31 5:13 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-10-31 5:13 carlos at redhat dot com [this message] 2013-10-31 5:16 ` [Bug nscd/16104] " carlos at redhat dot com 2013-10-31 9:03 ` mfranc at redhat dot com 2013-11-02 4:46 ` carlos at redhat dot com 2014-06-13 12:27 ` fweimer at redhat dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-16104-131@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=glibc-bugs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).