From: Eric Van Hensbergen <ericvh@gmail.com>
To: Pekka J Enberg <penberg@cs.helsinki.fi>
Cc: Pekka Enberg <penberg@gmail.com>,
linux-kernel@vger.kernel.org,
v9fs-developer@lists.sourceforge.net,
viro@parcelfarce.linux.theplanet.co.uk,
linux-fsdevel@vger.kernel.org
Subject: Re: v9fs: VFS superblock operations (2.0-rc6)
Date: Wed, 25 May 2005 09:41:35 -0500 [thread overview]
Message-ID: <a4e6962a0505250741431b7633@mail.gmail.com> (raw)
In-Reply-To: <courier.42946C49.00007170@courier.cs.helsinki.fi>
On 5/25/05, Pekka J Enberg <penberg@cs.helsinki.fi> wrote:
> >
> > Is this not the right way to use slabs? Should I just be using
> > kmalloc/kcalloc? (Is that what you mean by drop the custom allocator?)
>
> You can create your own slab for known fixed-size objects (your
> directory structure). Look at other filesystems for an example. They
> usually create a cache for their inode_info structs.
>
> The problem with your approach on packet structure slab is that we
> potentially get slabs with little or no activity. You would have to
> write custom code to tear down unused slabs but now you've got something
> that clearly does not belong in filesystem code. So yes, I think you'd
> be better of using kmalloc()/kcalloc() for your packet structures.
>
Okay, I figured that since packet buffer sizes were "mostly" fixed by
session configuration then slabs would be the way to go. But I see
your point - I'll go ahead and convert all the packet buffers to
kmalloc during the upcoming three-day weekend and try to push out a
new release candidate early next week.
-eric
next prev parent reply other threads:[~2005-05-25 14:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-23 22:25 [RFC][patch 4/7] v9fs: VFS superblock operations (2.0-rc6) ericvh
2005-05-24 7:11 ` Pekka Enberg
2005-05-24 19:08 ` Eric Van Hensbergen
2005-05-25 4:54 ` Pekka Enberg
2005-05-25 11:55 ` Eric Van Hensbergen
2005-05-25 12:15 ` Pekka J Enberg
2005-05-25 14:41 ` Eric Van Hensbergen [this message]
2005-05-25 5:17 ` [RFC][patch 4/7] " Pekka Enberg
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=a4e6962a0505250741431b7633@mail.gmail.com \
--to=ericvh@gmail.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=penberg@cs.helsinki.fi \
--cc=penberg@gmail.com \
--cc=v9fs-developer@lists.sourceforge.net \
--cc=viro@parcelfarce.linux.theplanet.co.uk \
/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;
as well as URLs for NNTP newsgroup(s).