From: Jens Axboe <axboe@suse.de>
To: Andrea Arcangeli <andrea@suse.de>
Cc: spaminos-ker@yahoo.com, Andrew Morton <akpm@osdl.org>,
linux-kernel@vger.kernel.org
Subject: Re: cfq misbehaving on 2.6.11-1.14_FC3
Date: Fri, 17 Jun 2005 20:16:36 +0200 [thread overview]
Message-ID: <20050617181635.GU6957@suse.de> (raw)
In-Reply-To: <20050617155108.GX9664@g5.random>
On Fri, Jun 17 2005, Andrea Arcangeli wrote:
> On Fri, Jun 17, 2005 at 04:10:40PM +0200, Jens Axboe wrote:
> > Perhaps rmap could be used to lookup who has a specific page mapped...
>
> I doubt, the computing and locking cost for every single page write
> would be probably too high. Doing it during swapping isn't a big deal
> since cpu is mostly idle during swapouts, but doing it all the time
> sounds a bit overkill.
We could cut the lookup down to per-request, it's not very likely that
seperate threads would be competing for the exact same disk location.
But it's still not too nice...
> A mechanism to pass down a pid would be much better. However I'm unsure
> where you could put the info while dirtying the page. If it was an uid
> it might be reasonable to have it in the address_space, but if you want
> a pid as index, then it'd need to go in the page_t, which would waste
> tons of space. Having a pid in the address space, may not work well with
> a database or some other app with multiple processes.
The previous patch just added a pid_t to struct page, but I knew all
along that this was just for testing, I never intended to merge that
part.
--
Jens Axboe
next prev parent reply other threads:[~2005-06-17 18:15 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-10 22:54 cfq misbehaving on 2.6.11-1.14_FC3 spaminos-ker
2005-06-11 9:29 ` Andrew Morton
2005-06-14 2:19 ` spaminos-ker
2005-06-14 7:03 ` Andrew Morton
2005-06-14 23:21 ` spaminos-ker
2005-06-17 14:10 ` Jens Axboe
2005-06-17 15:51 ` Andrea Arcangeli
2005-06-17 18:16 ` Jens Axboe [this message]
2005-06-17 23:01 ` spaminos-ker
2005-06-22 9:24 ` Jens Axboe
2005-06-22 17:54 ` spaminos-ker
2005-06-22 20:43 ` Jens Axboe
2005-06-23 18:30 ` spaminos-ker
2005-06-23 23:33 ` Con Kolivas
2005-06-24 2:33 ` spaminos-ker
2005-06-24 3:27 ` Con Kolivas
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=20050617181635.GU6957@suse.de \
--to=axboe@suse.de \
--cc=akpm@osdl.org \
--cc=andrea@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=spaminos-ker@yahoo.com \
/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