* reply cache
@ 2007-10-15 16:53 Jordi Prats
2007-10-15 16:57 ` Chuck Lever
2007-10-15 17:09 ` Talpey, Thomas
0 siblings, 2 replies; 4+ messages in thread
From: Jordi Prats @ 2007-10-15 16:53 UTC (permalink / raw)
To: nfs
Hi all,
According to the file fs/nfsd/nfscache.c (line 30 on 2.6.23), reply
cache is fixed size. Why is this a fixed size cache? Shouldn't be
relative to the number of nfsd threads? I've a server with this statistics:
rc 0 959398 336415498
By what I've been researching this means: 0 hits, 959398 misses (I
supose that means something like "recently deleted") and 336415498 not
in cache (and never has been). Is that right?
Modifying the CACHESIZE to a bigger size do you think it could enhance
NFS performance by getting some hits on the reply cache?
Thanks!
Jordi
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: reply cache
2007-10-15 16:53 reply cache Jordi Prats
@ 2007-10-15 16:57 ` Chuck Lever
2007-10-15 18:28 ` Jordi Prats
2007-10-15 17:09 ` Talpey, Thomas
1 sibling, 1 reply; 4+ messages in thread
From: Chuck Lever @ 2007-10-15 16:57 UTC (permalink / raw)
To: Jordi Prats; +Cc: nfs
[-- Attachment #1: Type: text/plain, Size: 935 bytes --]
Jordi Prats wrote:
> According to the file fs/nfsd/nfscache.c (line 30 on 2.6.23), reply
> cache is fixed size. Why is this a fixed size cache? Shouldn't be
> relative to the number of nfsd threads? I've a server with this statistics:
>
> rc 0 959398 336415498
>
> By what I've been researching this means: 0 hits, 959398 misses (I
> supose that means something like "recently deleted") and 336415498 not
> in cache (and never has been). Is that right?
A DRC hit implies the client is retransmitting. Not having any hits is
a good thing -- it means your server is able to handle all your clients
without much sweat.
> Modifying the CACHESIZE to a bigger size do you think it could enhance
> NFS performance by getting some hits on the reply cache?
The server's DRC is not a performance feature. It's a way for the
server to detect replayed requests from the client. In a perfect world,
servers wouldn't even have one.
[-- Attachment #2: chuck.lever.vcf --]
[-- Type: text/x-vcard, Size: 259 bytes --]
begin:vcard
fn:Chuck Lever
n:Lever;Chuck
org:Oracle Corporation;Corporate Architecture: Linux Projects Group
adr:;;1015 Granger Avenue;Ann Arbor;MI;48104;USA
title:Principal Member of Staff
tel;work:+1 248 614 5091
x-mozilla-html:FALSE
version:2.1
end:vcard
[-- Attachment #3: Type: text/plain, Size: 314 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
[-- Attachment #4: Type: text/plain, Size: 140 bytes --]
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: reply cache
2007-10-15 16:53 reply cache Jordi Prats
2007-10-15 16:57 ` Chuck Lever
@ 2007-10-15 17:09 ` Talpey, Thomas
1 sibling, 0 replies; 4+ messages in thread
From: Talpey, Thomas @ 2007-10-15 17:09 UTC (permalink / raw)
To: Jordi Prats; +Cc: nfs
At 12:53 PM 10/15/2007, Jordi Prats wrote:
>Hi all,
>According to the file fs/nfsd/nfscache.c (line 30 on 2.6.23), reply
>cache is fixed size. Why is this a fixed size cache? Shouldn't be
>relative to the number of nfsd threads? I've a server with this statistics:
>
>rc 0 959398 336415498
>
>By what I've been researching this means: 0 hits, 959398 misses (I
>supose that means something like "recently deleted") and 336415498 not
>in cache (and never has been). Is that right?
No, the large number is NOCACHE, which means the operation does not
require caching at all (it's an idempotent operation). The smaller number
is either a new operation that does require caching, or a retransmit that
didn't hit.
>Modifying the CACHESIZE to a bigger size do you think it could enhance
>NFS performance by getting some hits on the reply cache?
A bigger cache will only waste memory in your case. If you had a very
large miss count, then it might be warranted, but in any case it is not
going to help performance unless you're seeing a large number of client
retransmits. And even then, the fix is not a bigger cache.
Tom.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: reply cache
2007-10-15 16:57 ` Chuck Lever
@ 2007-10-15 18:28 ` Jordi Prats
0 siblings, 0 replies; 4+ messages in thread
From: Jordi Prats @ 2007-10-15 18:28 UTC (permalink / raw)
To: chuck.lever, Thomas.Talpey; +Cc: nfs
Thank you!
I miss understood the reply cache, I was thinking it as a way it caches
the answer to a question like "which are the attributes of that file?"
Now I'm happy with my zero hits ;)
Jordi
Chuck Lever wrote:
> Jordi Prats wrote:
>> According to the file fs/nfsd/nfscache.c (line 30 on 2.6.23), reply
>> cache is fixed size. Why is this a fixed size cache? Shouldn't be
>> relative to the number of nfsd threads? I've a server with this
>> statistics:
>>
>> rc 0 959398 336415498
>>
>> By what I've been researching this means: 0 hits, 959398 misses (I
>> supose that means something like "recently deleted") and 336415498 not
>> in cache (and never has been). Is that right?
>
> A DRC hit implies the client is retransmitting. Not having any hits is
> a good thing -- it means your server is able to handle all your clients
> without much sweat.
>
>> Modifying the CACHESIZE to a bigger size do you think it could enhance
>> NFS performance by getting some hits on the reply cache?
>
> The server's DRC is not a performance feature. It's a way for the
> server to detect replayed requests from the client. In a perfect world,
> servers wouldn't even have one.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-10-15 18:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-15 16:53 reply cache Jordi Prats
2007-10-15 16:57 ` Chuck Lever
2007-10-15 18:28 ` Jordi Prats
2007-10-15 17:09 ` Talpey, Thomas
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.