From: BlaisorBlade <blaisorblade_spam@yahoo.it>
To: Oleg Drokin <green@linuxhacker.ru>,
jdike@karaya.com, user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] Re: [PATCH] Fix for annoying problem with hostfs readdir problems.
Date: Sun, 18 Apr 2004 17:26:23 +0200 [thread overview]
Message-ID: <200404181726.23698.blaisorblade_spam@yahoo.it> (raw)
In-Reply-To: <20040415214629.GB207748@linuxhacker.ru>
Alle 23:46, giovedì 15 aprile 2004, Oleg Drokin ha scritto:
> Hello!
>
> On Fri, Apr 16, 2004 at 12:03:18AM +0300, Oleg Drokin wrote:
> > So the annoying problem with readdir not working on hostfs (on 2.6
> > host kernel only for me) was finally hunted to memory allocation
> > problem during opendir.
I've experienced it too onto 2.6 and someone else had the same problem - but
that patch is not perfect. Using always vmalloc() instead of kmalloc() is
wrong - vmalloc is slower, and Linus spoke against vmalloc(); it would also
slow down everything using malloc().
Probably you should use vmalloc() only if size is > the size limit (if this is
the problem, as I guess). When you come at free() it is a bit hard, but IIRC
vmalloc() can return pointers inside a certain, known memory area, right? So
it is possible to understand what function to call.
Bye
--
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&opÌk
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2004-04-18 15:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-15 21:03 [uml-devel] [PATCH] Fix for annoying problem with hostfs readdir problems Oleg Drokin
2004-04-15 21:46 ` [uml-devel] " Oleg Drokin
2004-04-18 15:26 ` BlaisorBlade [this message]
2004-04-18 22:26 ` Oleg Drokin
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=200404181726.23698.blaisorblade_spam@yahoo.it \
--to=blaisorblade_spam@yahoo.it \
--cc=green@linuxhacker.ru \
--cc=jdike@karaya.com \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/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