public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Xeno <xeno@overture.com>
To: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>,
	Hugh Dickins <hugh@veritas.com>
Subject: Re: 2.4: NFS client kmapping across I/O
Date: Tue, 29 Jan 2002 16:56:07 -0800	[thread overview]
Message-ID: <3C5744A7.E11B72CA@overture.com> (raw)
In-Reply-To: <Pine.LNX.4.21.0201291701510.1367-100000@localhost.localdomain>

Trond Myklebust wrote:
>
> We will in any case want to make the RPC layer 'page aware' in
> order to be able to make use of the zero-copy socket stuff
> (a.k.a. sendpage()).  I'm still not ready to detail exactly how
> it should be done though. I'll have to get back to you on this one...

Oh, yeah, zero-copy is definitely the way to go.  No hurry, the
workaround is good enough for now.  Thanks, Trond!

Hugh Dickins wrote:
> 
> I don't think the kmap area was really designed to be so small, it's
> just that nobody ever got around to allowing more than one page table
> for it.  It was surely absurd that HIGHMEM64G (doubly-sized ptes so half
> as many per page table) should be limited to fewer kmaps than HIGHMEM4G.

Thanks for the patch, Hugh, I may try it out when I get some free
hardware next week.  Looks like there is already a limit of 256 pages
kmapped per mount built into the NFS client, so LAST_PKMAP of 1800 would
allow heavy I/O to 7 mounts before filling up the kmap table, up from 2
mounts.

I wasn't sure about the kmap table size because of the loops in
flush_all_zero_pkmaps and map_new_virtual.  In the worst case, when the
table is nearly full, like when NFS is maxing it out, each of those
operations will tend to scan through the table without finding much that
can be freed/used.  I don't have a machine where I can tinker with it at
the moment, though, so I'm not sure how much it matters.

Xeno

      parent reply	other threads:[~2002-01-30  0:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-29  2:25 2.4: NFS client kmapping across I/O Xeno
2002-01-29  9:05 ` Trond Myklebust
2002-01-29 17:42 ` Hugh Dickins
2002-01-29 18:34   ` Rik van Riel
2002-01-30  0:56   ` Xeno [this message]

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=3C5744A7.E11B72CA@overture.com \
    --to=xeno@overture.com \
    --cc=hugh@veritas.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=trond.myklebust@fys.uio.no \
    /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