From: Dan Carpenter <dan.carpenter@oracle.com>
To: "Drokin, Oleg" <oleg.drokin@intel.com>
Cc: Julia Lawall <Julia.Lawall@lip6.fr>,
"<devel@driverdev.osuosl.org>" <devel@driverdev.osuosl.org>,
"Dilger, Andreas" <andreas.dilger@intel.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
"<kernel-janitors@vger.kernel.org>"
<kernel-janitors@vger.kernel.org>,
"<linux-kernel@vger.kernel.org>" <linux-kernel@vger.kernel.org>,
"<HPDD-discuss@ml01.01.org>" <HPDD-discuss@ml01.01.org>
Subject: Re: [PATCH] staging: lustre: llite: Use kzalloc and rewrite null tests
Date: Fri, 19 Sep 2014 12:11:51 +0300 [thread overview]
Message-ID: <20140919091151.GQ17875@mwanda> (raw)
In-Reply-To: <E43F4FD2-3A79-485E-960B-A12960B3D2B7@intel.com>
On Fri, Sep 19, 2014 at 02:57:03AM +0000, Drokin, Oleg wrote:
> 4. Sometimes we need large allocations. general kmalloc is less
> reliable as system lives on and memory fragmentation worsens. So we
> have this "allocations over 2-4 pages get switched to vmalloc" logic,
> if there's a way to do that automatically - that would be great.
Julia's patch only changes OBD_ALLOC() functions and those are always
kmalloc so that's not an issue here.
The OBD_ALLOC_LARGE() macro is vmalloc() or kmalloc() if the size is
small enough. We don't really want to choose between kmalloc and
vmalloc automatically. My instinct is that we should change all the
OBD_ALLOC_LARGE() to vmalloc() and trust it to allocate them in the most
sane way possible. But I haven't really looked very closely.
regards,
dan carpenter
WARNING: multiple messages have this Message-ID (diff)
From: Dan Carpenter <dan.carpenter@oracle.com>
To: "Drokin, Oleg" <oleg.drokin@intel.com>
Cc: Julia Lawall <Julia.Lawall@lip6.fr>,
"<devel@driverdev.osuosl.org>" <devel@driverdev.osuosl.org>,
"Dilger, Andreas" <andreas.dilger@intel.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
"<kernel-janitors@vger.kernel.org>"
<kernel-janitors@vger.kernel.org>,
"<linux-kernel@vger.kernel.org>" <linux-kernel@vger.kernel.org>,
"<HPDD-discuss@ml01.01.org>" <HPDD-discuss@ml01.01.org>
Subject: Re: [PATCH] staging: lustre: llite: Use kzalloc and rewrite null tests
Date: Fri, 19 Sep 2014 09:11:51 +0000 [thread overview]
Message-ID: <20140919091151.GQ17875@mwanda> (raw)
In-Reply-To: <E43F4FD2-3A79-485E-960B-A12960B3D2B7@intel.com>
On Fri, Sep 19, 2014 at 02:57:03AM +0000, Drokin, Oleg wrote:
> 4. Sometimes we need large allocations. general kmalloc is less
> reliable as system lives on and memory fragmentation worsens. So we
> have this "allocations over 2-4 pages get switched to vmalloc" logic,
> if there's a way to do that automatically - that would be great.
Julia's patch only changes OBD_ALLOC() functions and those are always
kmalloc so that's not an issue here.
The OBD_ALLOC_LARGE() macro is vmalloc() or kmalloc() if the size is
small enough. We don't really want to choose between kmalloc and
vmalloc automatically. My instinct is that we should change all the
OBD_ALLOC_LARGE() to vmalloc() and trust it to allocate them in the most
sane way possible. But I haven't really looked very closely.
regards,
dan carpenter
next prev parent reply other threads:[~2014-09-19 9:12 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-18 20:24 [PATCH] Use kzalloc and rewrite null tests Julia Lawall
2014-09-18 20:24 ` Julia Lawall
2014-09-18 20:24 ` [PATCH] staging: lustre: llite: " Julia Lawall
2014-09-18 20:24 ` Julia Lawall
2014-09-18 23:43 ` Dan Carpenter
2014-09-18 23:43 ` Dan Carpenter
2014-09-19 2:57 ` Drokin, Oleg
2014-09-19 2:57 ` Drokin, Oleg
2014-09-19 3:04 ` [HPDD-discuss] " Drokin, Oleg
2014-09-19 4:45 ` Julia Lawall
2014-09-19 4:45 ` Julia Lawall
2014-09-19 13:36 ` Drokin, Oleg
2014-09-19 13:36 ` Drokin, Oleg
2014-09-19 13:50 ` Julia Lawall
2014-09-19 13:50 ` Julia Lawall
2014-09-19 9:11 ` Dan Carpenter [this message]
2014-09-19 9:11 ` Dan Carpenter
2014-09-19 13:27 ` Drokin, Oleg
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=20140919091151.GQ17875@mwanda \
--to=dan.carpenter@oracle.com \
--cc=HPDD-discuss@ml01.01.org \
--cc=Julia.Lawall@lip6.fr \
--cc=andreas.dilger@intel.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=oleg.drokin@intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.