mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Ying Chen/Almaden/IBM" <ying@almaden.ibm.com>
To: Neil Brown <neilb@cse.unsw.edu.au>
Cc: linux-kernel@vger.kernel.org, nfs@lists.sourceforge.net,
	nfs-devel@linux.kernel.org
Subject: Re: [patch] nfsd optimizations for test10
Date: Sat, 11 Nov 2000 12:51:44 -0800	[thread overview]
Message-ID: <OF9401A42C.AB2D078B-ON88256994.0070AF60@LocalDomain> (raw)



 1/ Do you have any stats showing what sort of speedup this gives -
    I'm curious.


I don't have the exact timing stats to show the improvements, but I do have
some stats that I gathered when running SPEC SFS.
Basically with the default racache scheme which only keeps 80 entries in
the table (if I remember the # right), since SPEC SFS works on a lot of
files, I can see that shortly after the SPEC SFS test gets started, the
table is filled up, and nfsd_get_raparam() will never insert any other ra
values to the table, i.e., the racache hit ratio is always 0 for the SPEC
SFS runs, and yet each time when it's called, it scans the entire table
once, i.e., 80 table entries. On the other hand, when hash table is used,
on average, the old files can be removes and new entries can be added
dynamically, so the hit ratio improves and even if there isn't a hit, the
hash chain search is far more better than a table scan. On average, at most
a few list walk will suffice.


 2/ Was there a particular reason that you didn't use the
      include/linux/list.h
    list structures for the hash and lru chains?  If not, I suggest
    that doing so would be a good idea.  It should make the code
    clearer and more in-keeping with other code in the kernel.

No there isn't. Oh, well, maybe there is... I used nfscache.c as the base
when I built racache, which didn't use list.h.
Having said that, I just did not try hard to make the kernel more
consistant.

 3/ It is easiest for (many of) us if you just include the patch
    in-line in your email messages rather than as an attachment.   You
    can then be sure that EVERY mail reader can display it
    effectively, and Linus has said a number of times that he doesn't
    like attachments.
 3a/ If you or your mailer insists on using attachments, please make
    sure that the mime-type of the attachment is correct - text/plain,
    not applications/x-unknown.  Again, that makes it a lot easier to
    read your patch.

No problem with this. I will do that for the future patches.

 4/ I doubt that this is significant enough to go in before 2.4.0-final
now,
    but it probably has a reasonable chance of getting in shortly
    afterwards.

I really hope that this can go into 2.4, since the changes are really
straight-forward and I've been testing and running this under a wide range
of situations for a couple months in my own patched kernels. I probably
should have sent it a bit earlier. Oh, well.


NeilBrown
knfsd maintainer.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

             reply	other threads:[~2000-11-11 20:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-11 20:51 Ying Chen/Almaden/IBM [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-11-10 23:31 Ying Chen/Almaden/IBM
2000-11-11 20:16 ` Neil Brown

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=OF9401A42C.AB2D078B-ON88256994.0070AF60@LocalDomain \
    --to=ying@almaden.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=neilb@cse.unsw.edu.au \
    --cc=nfs-devel@linux.kernel.org \
    --cc=nfs@lists.sourceforge.net \
    /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: link
Be 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

all inboxes | Powered by JetHome®