linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Miklos Szeredi <miklos@szeredi.hu>
To: a.p.zijlstra@chello.nl
Cc: miklos@szeredi.hu, linux-kernel@vger.kernel.org,
	akpm@linux-foundation.org, linux-fsdevel@vger.kernel.org,
	linux-mm@kvack.org
Subject: Re: [RFC] fuse writable mmap design
Date: Thu, 15 Nov 2007 21:11:37 +0100	[thread overview]
Message-ID: <E1Isl3p-0000rl-00@dorka.pomaz.szeredi.hu> (raw)
In-Reply-To: <1195156900.22457.32.camel@lappy> (message from Peter Zijlstra on Thu, 15 Nov 2007 21:01:39 +0100)

> > OTOH, I'm thinking about adding a per-fs limit (adjustable for
> > privileged mounts) of dirty+writeback.
> > 
> > I'm not sure how hard would it be to add support for this into
> > balance_dirty_pages().  So I'm thinking of a parameter in struct
> > backing_dev_info that is used to clip the calculated per-bdi threshold
> > below this maximum.
> > 
> > How would that affect the proportions algorithm?  What would happen to
> > the unused portion?  Would it adapt to the slowed writeback and
> > allocate it to some other writer?
> 
> The unused part is gone, I've not yet found a way to re-distribute this
> fairly.
> 
> [ It's one of my open-problems, I can do a min_ratio per bdi, but not
>   yet a max_ratio ]

OK, I'll bear this in mind.

Limiting the number of dirty+writeback to << dirty_thresh could still
make sense, since it could prevent a nasty filesystem from pinning
lots of kernel memory (which it can do without fuse in other ways, so
this is not very important IMO).

Miklos

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

      reply	other threads:[~2007-11-15 20:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-15 16:10 Miklos Szeredi
2007-11-15 19:22 ` Peter Zijlstra
2007-11-15 19:37   ` Miklos Szeredi
2007-11-15 19:42     ` Peter Zijlstra
2007-11-15 19:57       ` Miklos Szeredi
2007-11-15 20:01         ` Peter Zijlstra
2007-11-15 20:11           ` Miklos Szeredi [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=E1Isl3p-0000rl-00@dorka.pomaz.szeredi.hu \
    --to=miklos@szeredi.hu \
    --cc=a.p.zijlstra@chello.nl \
    --cc=akpm@linux-foundation.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.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: 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