From: Andrew Morton <akpm@linux-foundation.org>
To: Tejun Heo <tj@kernel.org>
Cc: linux-kernel@vger.kernel.org, Jens Axboe <axboe@kernel.dk>,
Vivek Goyal <vgoyal@redhat.com>
Subject: Re: [PATCH percpu/for-3.17 1/2] percpu: implement percpu_pool
Date: Thu, 31 Jul 2014 15:03:28 -0700 [thread overview]
Message-ID: <20140731150328.d2b57d5f6d7aafa33f5ad979@linux-foundation.org> (raw)
In-Reply-To: <20140718200804.GG13012@htj.dyndns.org>
On Fri, 18 Jul 2014 16:08:04 -0400 Tejun Heo <tj@kernel.org> wrote:
> percpu allocator requires sleepable context for allocations. Most use
> cases are fine with the requirement but blk-throttle currently
> implements its own asynchronous allocation mechanism to allow
> initiating allocation from atomic contexts and there are expected to
> be more similar use cases.
>
> It'd be best to make percpu allocator take GFP mask like other
> allocators but its entanglement with kernel virtual address management
> makes it very cumbersome. Also, percpu allocations from atomic
> contexts are likely to remain highly restricted.
>
> This patch implements a simple asynchronous allocation pool, named
> percpu_pool, which can be used from any context and is refilled
> automatically. A pool is initialized with the size and alignment of
> the percpu areas to serve and the low an high watermarks. When the
> number of cached areas fall below the low watermark, a work item is
> kicked off to fill it up to the high mark. A pool can be statically
> defined and can be manually filled and emptied.
I don't think we should add facilities such as this. Because if we do,
people will use them and thereby make the kernel less reliable, for
obvious reasons.
It would be better to leave the nasty hack localized within
blk-throttle.c and hope that someone finds a way of fixing it.
next prev parent reply other threads:[~2014-07-31 22:03 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-18 20:08 Tejun Heo
2014-07-18 20:08 ` [PATCH percpu/for-3.17 2/2] blk-throttle: replace custom async percpu alloc mechanism with percpu_pool Tejun Heo
2014-07-21 17:27 ` Vivek Goyal
2014-07-22 0:50 ` Tejun Heo
2014-07-22 0:51 ` Tejun Heo
2014-07-31 19:00 ` [PATCH percpu/for-3.17 1/2] percpu: implement percpu_pool Tejun Heo
2014-07-31 22:03 ` Andrew Morton [this message]
2014-08-01 0:44 ` Tejun Heo
2014-08-01 1:16 ` Andrew Morton
2014-08-01 1:23 ` Tejun Heo
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=20140731150328.d2b57d5f6d7aafa33f5ad979@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=axboe@kernel.dk \
--cc=linux-kernel@vger.kernel.org \
--cc=tj@kernel.org \
--cc=vgoyal@redhat.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
all inboxes | Powered by JetHome®