From: "Sven Köhler" <skoehler@upb.de>
To: BlaisorBlade <blaisorblade_spam@yahoo.it>
Cc: user-mode-linux-devel@lists.sourceforge.net,
Jeff Dike <jdike@addtoit.com>
Subject: Re: [uml-devel] [BUG] host fd leak when using hostfs
Date: Sat, 12 Jun 2004 19:42:12 +0200 [thread overview]
Message-ID: <40CB4074.30706@upb.de> (raw)
In-Reply-To: <200406121932.43743.blaisorblade_spam@yahoo.it>
>>i mounted the directory /usr/portage from my host into my UML-machine
>>(also to /usr/portage). The directory is mounted read-only. After that,
>>i did "emerge -upD world" which must have accessed many many files.
>>emerge crashed with the exception "too many open files" and indeed, the
>>processes inside the UML cannot open any file anymore.
>>
>>If i do an "lsof" on the host, i see that the kernel-process has still
>>opened many many files from /usr/portage - too many files ;-)
>>
>>So this should be bug in hostfs, so that hostfs doesn't close files on
>>the host if they are closed inside the UML. Is there a fix for that
>>already?
>
> Try the attached patch (for 2.6 only!), but please be very careful... there
> could be subtle pitfall in the VFS making it have other problems. However
> I've well understood what is the difference between 2.4 and 2.6 which makes
> the difference.
>
> What is your UML version? I got the same thing with 2.6.4 patch adapted onto
> 2.6.6 (the 2.6.6-02 distributed on my page).
I think i used 2.6.6-um1 from the official download-page. I should have
mentioned that in my first POST.
> for i in `find /mnt/usr/bin`; do cat $i >/dev/null; done
i think even "find /mnt/usr/bin" would habe been sufficient to reproduce
the problem.
-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
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-06-12 17:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-03 23:27 [uml-devel] [BUG] "too many open files" when using hostfs Sven Köhler
[not found] ` <200406121932.43743.blaisorblade_spam@yahoo.it>
2004-06-12 17:42 ` Sven Köhler [this message]
[not found] ` <200406122014.47884.blaisorblade_spam@yahoo.it>
2004-06-12 18:10 ` [uml-devel] [BUG] host fd leak " Sven Köhler
2004-06-14 18:10 ` BlaisorBlade
2004-06-14 18:12 ` BlaisorBlade
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=40CB4074.30706@upb.de \
--to=skoehler@upb.de \
--cc=blaisorblade_spam@yahoo.it \
--cc=jdike@addtoit.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