help-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Port leaks


From: Ognyan Kulev
Subject: Re: Port leaks
Date: Tue, 24 Feb 2004 05:26:57 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021205 Debian/1.2.1-0

Marco Gerards wrote:
There is something weird going on in ext2fs I think or I misunderstand
something.  On my GNU/Hurd box I ran the "portinfo 3|wc -l" commands
to see the amount of portrights used in the ext2fs.static server.

The first time when I run it I see that it has 1617 portrights.

After that I run "du -hs hurd" to see the size of the Hurd
sourcetree.  Just after that was finished the ext2fs server will have
1980 portrights.  When I wait a while this amount will be lowered to
1968, but it does not get lower than that.

Is this expected behavior or is this some portleak?  How harmful is
this (and why is it harmful?)  and where should I look if this is a
problem? (Special ways to debug such problems?).

Shouldn't Mach destroy portrights automatically when a file was opened
by du after du was closed? (And send the server a port dead/no senders
notification???).  Or is this not related with what I noticed?

diskfs keeps cache of "struct node", even when they are unused. Each of these has associated "struct pager" object that has receive right (port) that receives Mach's memory object requests. I think that this is the reason for those ports. Though this is just a thought about the problem and I could be wrong...

Regards,
ogi





reply via email to

[Prev in Thread] Current Thread [Next in Thread]