* [gentoo-user] Disk usage during emerge
@ 2012-03-08 2:57 Frank Steinmetzger
2012-03-08 5:38 ` Paul Hartman
` (2 more replies)
0 siblings, 3 replies; 21+ messages in thread
From: Frank Steinmetzger @ 2012-03-08 2:57 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1503 bytes --]
Hello list
It came to my attention that during (after) an emerge run, df reports
considerably less space available on my / than before the emerge (everything
except /home sits on the root partition). I was wondering how this comes to
be, since I have /var/tmp/portage on tmpfs.
I am in the middle of a KDE upgrade (4.8.0→4.8.1) right now and before I
started, I downloaded all distfiles and then looked at df /, it showed 1022
blocks, hence about 1 GB of free disk space. I am at package 115 out of 174
right now, and df shows a mere 389k blocks remaining.
Also before I began the emerge run, I started 'ncdu -x /' which scans all dirs
on the / partition and then I can browse through my FS hieararchy, showing the
disk usage of every directory. Now I ran the same ncdu command again in
another screen, so I can compare it with the first one.
The folders themselves have 0.1 to 0.2 GB difference between their old and new
state, and ncdu's bottom bar even shows the same values for both apparent and
real total disk usage (rounded to 0.1 GB). So what am I missing here? I
searched df's man page for something about apparent sizes/sparse files, but
then again, why would portage create such files in the first place?
Do you have any thoughts that might help me understand what I'm seeing?
--
Gruß | Greetings | Qapla'
I forbid any use of my email addresses with Facebook services.
You will find everything in an online database.
Just not what you are looking for.
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Disk usage during emerge
2012-03-08 2:57 [gentoo-user] Disk usage during emerge Frank Steinmetzger
@ 2012-03-08 5:38 ` Paul Hartman
2012-03-08 6:08 ` Bryan Gardiner
2012-03-08 7:53 ` Julian Simioni
2012-03-08 10:50 ` [gentoo-user] " Nikos Chantziaras
2 siblings, 1 reply; 21+ messages in thread
From: Paul Hartman @ 2012-03-08 5:38 UTC (permalink / raw
To: gentoo-user
On Wed, Mar 7, 2012 at 8:57 PM, Frank Steinmetzger <Warp_7@gmx.de> wrote:
> Hello list
Hi :)
> It came to my attention that during (after) an emerge run, df reports
> considerably less space available on my / than before the emerge (everything
> except /home sits on the root partition). I was wondering how this comes to
> be, since I have /var/tmp/portage on tmpfs.
Perhaps because of downloading of the distfiles? Or did you already
exclude those from the totals?
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Disk usage during emerge
2012-03-08 5:38 ` Paul Hartman
@ 2012-03-08 6:08 ` Bryan Gardiner
0 siblings, 0 replies; 21+ messages in thread
From: Bryan Gardiner @ 2012-03-08 6:08 UTC (permalink / raw
To: gentoo-user
On Wed, 7 Mar 2012 23:38:39 -0600
Paul Hartman <paul.hartman+gentoo@gmail.com> wrote:
>
> Perhaps because of downloading of the distfiles? Or did you already
> exclude those from the totals?
It sounds like he downloaded distfiles before checking.
> I downloaded all distfiles and then looked at df /, it showed 1022
> blocks, hence about 1 GB of free disk space.
Do you mean 1022k blocks to give 1GiB? Since each block is normally
1KiB...
One hypothesis would be that if you are running KDE while doing the
upgrade, then the kernel can't immediately overwrite some of the 4.8.0
files with 4.8.1, because if you're still running the old 4.8.0
binaries, libraries, etc. in memory, they are kept around on disk
until the processes using them finish (though during that time, all
accesses to those filenames will reach the new versions). Once you
log out / reboot, this old space will be reclaimed. I'm not sure how
much this affects something like KDE that relies heavily on shared
libraries. Of course if the space stays used then it's some other
cause entirely.
Also, this is tangental to your problem, but don't forget about
"eclean-dist -d -f" if you want to clean up old distfiles :).
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Disk usage during emerge
2012-03-08 2:57 [gentoo-user] Disk usage during emerge Frank Steinmetzger
2012-03-08 5:38 ` Paul Hartman
@ 2012-03-08 7:53 ` Julian Simioni
2012-03-08 7:54 ` Julian Simioni
2012-03-08 10:50 ` [gentoo-user] " Nikos Chantziaras
2 siblings, 1 reply; 21+ messages in thread
From: Julian Simioni @ 2012-03-08 7:53 UTC (permalink / raw
To: gentoo-user
On Wed, Mar 7, 2012 at 6:57 PM, Frank Steinmetzger <Warp_7@gmx.de> wrote:
>
> Hello list
>
> It came to my attention that during (after) an emerge run, df reports
> considerably less space available on my / than before the emerge (everything
> except /home sits on the root partition). I was wondering how this comes to
> be, since I have /var/tmp/portage on tmpfs.
>
> I am in the middle of a KDE upgrade (4.8.0→4.8.1) right now and before I
> started, I downloaded all distfiles and then looked at df /, it showed 1022
> blocks, hence about 1 GB of free disk space. I am at package 115 out of 174
> right now, and df shows a mere 389k blocks remaining.
>
> Also before I began the emerge run, I started 'ncdu -x /' which scans all dirs
> on the / partition and then I can browse through my FS hieararchy, showing the
> disk usage of every directory. Now I ran the same ncdu command again in
> another screen, so I can compare it with the first one.
>
> The folders themselves have 0.1 to 0.2 GB difference between their old and new
> state, and ncdu's bottom bar even shows the same values for both apparent and
> real total disk usage (rounded to 0.1 GB). So what am I missing here? I
> searched df's man page for something about apparent sizes/sparse files, but
> then again, why would portage create such files in the first place?
>
> Do you have any thoughts that might help me understand what I'm seeing?
> --
> Gruß | Greetings | Qapla'
> I forbid any use of my email addresses with Facebook services.
>
> You will find everything in an online database.
> Just not what you are looking for.
Unless you have it mounted on tmpfs for increased compilation speed as
many others do, /var/tmp/portage can easily grow to several hundred
megabytes as packages are compiled. Once the compilation finishes
successfully, it will be cleaned up, so the contents are constantly
changing during an emerge, and it may not be easy to track down after
the fact.
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Disk usage during emerge
2012-03-08 7:53 ` Julian Simioni
@ 2012-03-08 7:54 ` Julian Simioni
0 siblings, 0 replies; 21+ messages in thread
From: Julian Simioni @ 2012-03-08 7:54 UTC (permalink / raw
To: gentoo-user
On Wed, Mar 7, 2012 at 11:53 PM, Julian Simioni
<julian.simioni@gmail.com> wrote:
> On Wed, Mar 7, 2012 at 6:57 PM, Frank Steinmetzger <Warp_7@gmx.de> wrote:
>>
>> Hello list
>>
>> It came to my attention that during (after) an emerge run, df reports
>> considerably less space available on my / than before the emerge (everything
>> except /home sits on the root partition). I was wondering how this comes to
>> be, since I have /var/tmp/portage on tmpfs.
>>
>> I am in the middle of a KDE upgrade (4.8.0→4.8.1) right now and before I
>> started, I downloaded all distfiles and then looked at df /, it showed 1022
>> blocks, hence about 1 GB of free disk space. I am at package 115 out of 174
>> right now, and df shows a mere 389k blocks remaining.
>>
>> Also before I began the emerge run, I started 'ncdu -x /' which scans all dirs
>> on the / partition and then I can browse through my FS hieararchy, showing the
>> disk usage of every directory. Now I ran the same ncdu command again in
>> another screen, so I can compare it with the first one.
>>
>> The folders themselves have 0.1 to 0.2 GB difference between their old and new
>> state, and ncdu's bottom bar even shows the same values for both apparent and
>> real total disk usage (rounded to 0.1 GB). So what am I missing here? I
>> searched df's man page for something about apparent sizes/sparse files, but
>> then again, why would portage create such files in the first place?
>>
>> Do you have any thoughts that might help me understand what I'm seeing?
>> --
>> Gruß | Greetings | Qapla'
>> I forbid any use of my email addresses with Facebook services.
>>
>> You will find everything in an online database.
>> Just not what you are looking for.
>
> Unless you have it mounted on tmpfs for increased compilation speed as
> many others do, /var/tmp/portage can easily grow to several hundred
> megabytes as packages are compiled. Once the compilation finishes
> successfully, it will be cleaned up, so the contents are constantly
> changing during an emerge, and it may not be easy to track down after
> the fact.
And only after hitting send to I register the line where you mention
that you do in fact use tmpfs. doh!
^ permalink raw reply [flat|nested] 21+ messages in thread
* [gentoo-user] Re: Disk usage during emerge
2012-03-08 2:57 [gentoo-user] Disk usage during emerge Frank Steinmetzger
2012-03-08 5:38 ` Paul Hartman
2012-03-08 7:53 ` Julian Simioni
@ 2012-03-08 10:50 ` Nikos Chantziaras
2012-03-08 14:55 ` Frank Steinmetzger
2 siblings, 1 reply; 21+ messages in thread
From: Nikos Chantziaras @ 2012-03-08 10:50 UTC (permalink / raw
To: gentoo-user
On 08/03/12 04:57, Frank Steinmetzger wrote:
> It came to my attention that during (after) an emerge run, df reports
> considerably less space available on my / than before the emerge (everything
> except /home sits on the root partition). I was wondering how this comes to
> be, since I have /var/tmp/portage on tmpfs.
>
> I am in the middle of a KDE upgrade (4.8.0→4.8.1) right now and before I
> started, I downloaded all distfiles and then looked at df /, it showed 1022
> blocks, hence about 1 GB of free disk space. I am at package 115 out of 174
> right now, and df shows a mere 389k blocks remaining.
That's because the old files are not being deleted since they are in
use. When you logout of KDE and restart the whole stack
(/etc/init.d/xdm restart) then everything will be back to normal.
Or simply reboot.
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Re: Disk usage during emerge
2012-03-08 10:50 ` [gentoo-user] " Nikos Chantziaras
@ 2012-03-08 14:55 ` Frank Steinmetzger
2012-03-08 15:56 ` Nikos Chantziaras
0 siblings, 1 reply; 21+ messages in thread
From: Frank Steinmetzger @ 2012-03-08 14:55 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1792 bytes --]
On Thu, Mar 08, 2012 at 12:50:40PM +0200, Nikos Chantziaras wrote:
> On 08/03/12 04:57, Frank Steinmetzger wrote:
> > It came to my attention that during (after) an emerge run, df reports
> > considerably less space available on my / than before the emerge (everything
> > except /home sits on the root partition). I was wondering how this comes to
> > be, since I have /var/tmp/portage on tmpfs.
> >
> > I am in the middle of a KDE upgrade (4.8.0→4.8.1) right now and before I
> > started, I downloaded all distfiles and then looked at df /, it showed 1022
> > blocks, hence about 1 GB of free disk space. I am at package 115 out of 174
> > right now, and df shows a mere 389k blocks remaining.
>
> That's because the old files are not being deleted since they are in
> use. When you logout of KDE and restart the whole stack
> (/etc/init.d/xdm restart) then everything will be back to normal.
By jove, that's definitely it. I knew about this fact from other use cases
(like deleting a video file which I'm still watching. HA, do that, Windows!),
but never thought of it regarding emerging. I always assumed for some reason
that the files were kept in RAM and the physical file itself was no longer
relevant. Just closing all programs before logging out gave back around 350 M.
And yes, I had a typo in the original mail; instead of 1000 blocks I meant
1000k Blocks. And also yes, I already knew about eclean-dist. I even wrote a
counterpart for Debian which deletes all .debs that aren't installed anymore,
but keeps all the rest. Anyway, after the reboot I now have 1059k blocks free.
:)
--
Gruß | Greetings | Qapla'
I forbid any use of my email addresses with Facebook services.
“Oh, gravity, thou art a heartless bitch.” – Sheldon Cooper
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* [gentoo-user] Re: Disk usage during emerge
2012-03-08 14:55 ` Frank Steinmetzger
@ 2012-03-08 15:56 ` Nikos Chantziaras
2012-03-08 20:01 ` Alan McKinnon
2012-03-09 6:38 ` Bryan Gardiner
0 siblings, 2 replies; 21+ messages in thread
From: Nikos Chantziaras @ 2012-03-08 15:56 UTC (permalink / raw
To: gentoo-user
On 08/03/12 16:55, Frank Steinmetzger wrote:
> On Thu, Mar 08, 2012 at 12:50:40PM +0200, Nikos Chantziaras wrote:
>> On 08/03/12 04:57, Frank Steinmetzger wrote:
>>> It came to my attention that during (after) an emerge run, df reports
>>> considerably less space available on my / than before the emerge
>>
>> That's because the old files are not being deleted since they are in
>> use. When you logout of KDE and restart the whole stack
>> (/etc/init.d/xdm restart) then everything will be back to normal.
>
> By jove, that's definitely it. I knew about this fact from other use cases
> (like deleting a video file which I'm still watching. HA, do that, Windows!),
> but never thought of it regarding emerging. I always assumed for some reason
> that the files were kept in RAM and the physical file itself was no longer
> relevant. Just closing all programs before logging out gave back around 350 M.
I discovered this nifty little tool recently that tells you if any
deleted files are currently being kept open by running processes:
"app-admin/checkrestart". I usually run it after world updates so I can
tell whether I need a restart or not.
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Re: Disk usage during emerge
2012-03-08 15:56 ` Nikos Chantziaras
@ 2012-03-08 20:01 ` Alan McKinnon
2012-03-08 23:42 ` walt
2012-03-09 0:29 ` Neil Bothwick
2012-03-09 6:38 ` Bryan Gardiner
1 sibling, 2 replies; 21+ messages in thread
From: Alan McKinnon @ 2012-03-08 20:01 UTC (permalink / raw
To: gentoo-user
On Thu, 08 Mar 2012 17:56:18 +0200
Nikos Chantziaras <realnc@arcor.de> wrote:
> On 08/03/12 16:55, Frank Steinmetzger wrote:
> > On Thu, Mar 08, 2012 at 12:50:40PM +0200, Nikos Chantziaras wrote:
> >> On 08/03/12 04:57, Frank Steinmetzger wrote:
> >>> It came to my attention that during (after) an emerge run, df
> >>> reports considerably less space available on my / than before the
> >>> emerge
> >>
> >> That's because the old files are not being deleted since they are
> >> in use. When you logout of KDE and restart the whole stack
> >> (/etc/init.d/xdm restart) then everything will be back to normal.
> >
> > By jove, that's definitely it. I knew about this fact from other
> > use cases (like deleting a video file which I'm still watching. HA,
> > do that, Windows!), but never thought of it regarding emerging. I
> > always assumed for some reason that the files were kept in RAM and
> > the physical file itself was no longer relevant. Just closing all
> > programs before logging out gave back around 350 M.
>
> I discovered this nifty little tool recently that tells you if any
> deleted files are currently being kept open by running processes:
> "app-admin/checkrestart". I usually run it after world updates so I
> can tell whether I need a restart or not.
>
>
>
Why go to the effor tof emerging another package? Use what you already
have:
lsof | egrep '(deleted)$'
--
Alan McKinnnon
alan.mckinnon@gmail.com
^ permalink raw reply [flat|nested] 21+ messages in thread
* [gentoo-user] Re: Disk usage during emerge
2012-03-08 20:01 ` Alan McKinnon
@ 2012-03-08 23:42 ` walt
2012-03-09 0:05 ` Alan McKinnon
2012-03-09 0:29 ` Neil Bothwick
1 sibling, 1 reply; 21+ messages in thread
From: walt @ 2012-03-08 23:42 UTC (permalink / raw
To: gentoo-user
On 03/08/2012 12:01 PM, Alan McKinnon wrote:
> lsof | egrep '(deleted)$'
From 'man grep':
"Direct invocation as either egrep or fgrep is deprecated, but is
provided to allow historical applications that rely on them to
run unmodified."
Seems you've been promoted to the rank of Historical Application.
Congratulations, and a very warm welcome to the club :)
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Re: Disk usage during emerge
2012-03-08 23:42 ` walt
@ 2012-03-09 0:05 ` Alan McKinnon
2012-03-09 0:28 ` Neil Bothwick
0 siblings, 1 reply; 21+ messages in thread
From: Alan McKinnon @ 2012-03-09 0:05 UTC (permalink / raw
To: gentoo-user
On Thu, 08 Mar 2012 15:42:47 -0800
walt <w41ter@gmail.com> wrote:
> On 03/08/2012 12:01 PM, Alan McKinnon wrote:
>
> > lsof | egrep '(deleted)$'
>
> From 'man grep':
>
> "Direct invocation as either egrep or fgrep is deprecated, but is
> provided to allow historical applications that rely on them to
> run unmodified."
Deprecated by whom exactly? In the opinion of the developer?
I strongly suspect that 1000s of sysadmins the world over are screaming
in horror and telling the deprecator to shove off right about now...
> Seems you've been promoted to the rank of Historical Application.
>
> Congratulations, and a very warm welcome to the club :)
Thank you very much!
I'll wear that badge with pride, right next to my "Pedantic
Old Fart" label. And I dare say our very own Mr Bothwick will be
standing right next to me :-)
--
Alan McKinnnon
alan.mckinnon@gmail.com
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Re: Disk usage during emerge
2012-03-09 0:05 ` Alan McKinnon
@ 2012-03-09 0:28 ` Neil Bothwick
0 siblings, 0 replies; 21+ messages in thread
From: Neil Bothwick @ 2012-03-09 0:28 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 537 bytes --]
On Fri, 9 Mar 2012 02:05:04 +0200, Alan McKinnon wrote:
> > Seems you've been promoted to the rank of Historical Application.
> >
> > Congratulations, and a very warm welcome to the club :)
>
> Thank you very much!
>
> I'll wear that badge with pride, right next to my "Pedantic
> Old Fart" label. And I dare say our very own Mr Bothwick will be
> standing right next to me :-)
I prefer to sit these days, thank you :)
--
Neil Bothwick
Men who go out with flat chested woman have reasons for feeling down
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Re: Disk usage during emerge
2012-03-08 20:01 ` Alan McKinnon
2012-03-08 23:42 ` walt
@ 2012-03-09 0:29 ` Neil Bothwick
1 sibling, 0 replies; 21+ messages in thread
From: Neil Bothwick @ 2012-03-09 0:29 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 690 bytes --]
On Thu, 8 Mar 2012 22:01:57 +0200, Alan McKinnon wrote:
> > I discovered this nifty little tool recently that tells you if any
> > deleted files are currently being kept open by running processes:
> > "app-admin/checkrestart". I usually run it after world updates so I
> > can tell whether I need a restart or not.
> Why go to the effor tof emerging another package? Use what you already
> have:
>
> lsof | egrep '(deleted)$'
Unless you already have checkrestart installed for its intended use, it's
a lot better than grep for that.
I hadn't thought of using it for this, nice idea.
--
Neil Bothwick
Don't cry because it's over. Smile because it happened.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Re: Disk usage during emerge
2012-03-08 15:56 ` Nikos Chantziaras
2012-03-08 20:01 ` Alan McKinnon
@ 2012-03-09 6:38 ` Bryan Gardiner
2012-03-09 15:33 ` Paul Hartman
1 sibling, 1 reply; 21+ messages in thread
From: Bryan Gardiner @ 2012-03-09 6:38 UTC (permalink / raw
To: gentoo-user
On Thu, 08 Mar 2012 17:56:18 +0200
Nikos Chantziaras <realnc@arcor.de> wrote:
> I discovered this nifty little tool recently that tells you if any
> deleted files are currently being kept open by running processes:
> "app-admin/checkrestart". I usually run it after world updates so I
> can tell whether I need a restart or not.
Because I'm too lazy to unkeyword and emerge it... Does this program
show how much space is being used by deleted files? Or, is there a way
to access more information about or even recover such a zombie file?
lsof gives its inode number, but I have no idea how to access it from
there.
- Bryan
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Re: Disk usage during emerge
2012-03-09 6:38 ` Bryan Gardiner
@ 2012-03-09 15:33 ` Paul Hartman
2012-03-09 16:45 ` Bryan Gardiner
2012-03-09 17:09 ` Mark Knecht
0 siblings, 2 replies; 21+ messages in thread
From: Paul Hartman @ 2012-03-09 15:33 UTC (permalink / raw
To: gentoo-user
On Fri, Mar 9, 2012 at 12:38 AM, Bryan Gardiner <bog@khumba.net> wrote:
> On Thu, 08 Mar 2012 17:56:18 +0200
> Nikos Chantziaras <realnc@arcor.de> wrote:
>
>> I discovered this nifty little tool recently that tells you if any
>> deleted files are currently being kept open by running processes:
>> "app-admin/checkrestart". I usually run it after world updates so I
>> can tell whether I need a restart or not.
>
> Because I'm too lazy to unkeyword and emerge it... Does this program
> show how much space is being used by deleted files? Or, is there a way
> to access more information about or even recover such a zombie file?
> lsof gives its inode number, but I have no idea how to access it from
> there.
I just ran it, here's the output:
Found 22 processes using old versions of upgraded files
(15 distinct programs)
(14 distinct packages)
Of these, 10 seem to contain init scripts which can be used to restart them:
The following packages seem to have init scripts that could be used
to restart them:
sys-apps/smartmontools:
5082 /usr/sbin/smartd
sys-auth/consolekit:
4384 /usr/sbin/console-kit-daemon
app-text/dictd:
4834 /usr/sbin/dictd
sys-fs/mdadm:
3742 /sbin/mdadm
net-dns/unbound:
4507 /usr/sbin/unbound
net-print/cups:
4767 /usr/sbin/cupsd
sys-apps/dbus:
4369 /usr/bin/dbus-daemon
net-misc/ntp:
4975 /usr/sbin/ntpd
net-fs/samba:
5015 /usr/sbin/smbd
5045 /usr/sbin/smbd
5021 /usr/sbin/nmbd
app-crypt/ekeyd:
4851 /usr/libexec/ekeyd
These are the init scripts:
/etc/init.d/smartd restart
/etc/init.d/consolekit restart
/etc/init.d/dictd restart
/etc/init.d/mdraid restart
/etc/init.d/mdadm restart
/etc/init.d/unbound restart
/etc/init.d/cupsd restart
/etc/init.d/dbus restart
/etc/init.d/ntpd restart
/etc/init.d/ntp-client restart
/etc/init.d/samba restart
/etc/init.d/ekey-egd-linux restart
/etc/init.d/ekeyd restart
These processes do not seem to have an associated init script to restart them:
sys-fs/udisks:
5357 /usr/libexec/udisks-daemon
5350 /usr/libexec/udisks-daemon
sys-apps/util-linux:
5223 /sbin/agetty
5221 /sbin/agetty
5222 /sbin/agetty
5225 /sbin/agetty
5224 /sbin/agetty
27330 /sbin/agetty
sys-power/upower:
5327 /usr/libexec/upowerd
sys-auth/polkit:
4467 /usr/libexec/polkitd
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Re: Disk usage during emerge
2012-03-09 15:33 ` Paul Hartman
@ 2012-03-09 16:45 ` Bryan Gardiner
2012-03-09 17:09 ` Mark Knecht
1 sibling, 0 replies; 21+ messages in thread
From: Bryan Gardiner @ 2012-03-09 16:45 UTC (permalink / raw
To: gentoo-user
Okay that looks helpful. You just convinced me to install it :). That
goes into a lot more depth than I'd imagined.
Thanks!
- Bryan
On Fri, 9 Mar 2012 09:33:04 -0600
Paul Hartman <paul.hartman+gentoo@gmail.com> wrote:
> On Fri, Mar 9, 2012 at 12:38 AM, Bryan Gardiner <bog@khumba.net>
> wrote:
> > On Thu, 08 Mar 2012 17:56:18 +0200
> > Nikos Chantziaras <realnc@arcor.de> wrote:
> >
> >> I discovered this nifty little tool recently that tells you if any
> >> deleted files are currently being kept open by running processes:
> >> "app-admin/checkrestart". I usually run it after world updates so
> >> I can tell whether I need a restart or not.
> >
> > Because I'm too lazy to unkeyword and emerge it... Does this
> > program show how much space is being used by deleted files? Or, is
> > there a way to access more information about or even recover such a
> > zombie file? lsof gives its inode number, but I have no idea how to
> > access it from there.
>
> I just ran it, here's the output:
>
> Found 22 processes using old versions of upgraded files
> (15 distinct programs)
> (14 distinct packages)
>
> Of these, 10 seem to contain init scripts which can be used to
> restart them: The following packages seem to have init scripts that
> could be used to restart them:
> sys-apps/smartmontools:
> 5082 /usr/sbin/smartd
> sys-auth/consolekit:
> 4384 /usr/sbin/console-kit-daemon
> app-text/dictd:
> 4834 /usr/sbin/dictd
> sys-fs/mdadm:
> 3742 /sbin/mdadm
> net-dns/unbound:
> 4507 /usr/sbin/unbound
> net-print/cups:
> 4767 /usr/sbin/cupsd
> sys-apps/dbus:
> 4369 /usr/bin/dbus-daemon
> net-misc/ntp:
> 4975 /usr/sbin/ntpd
> net-fs/samba:
> 5015 /usr/sbin/smbd
> 5045 /usr/sbin/smbd
> 5021 /usr/sbin/nmbd
> app-crypt/ekeyd:
> 4851 /usr/libexec/ekeyd
>
> These are the init scripts:
> /etc/init.d/smartd restart
> /etc/init.d/consolekit restart
> /etc/init.d/dictd restart
> /etc/init.d/mdraid restart
> /etc/init.d/mdadm restart
> /etc/init.d/unbound restart
> /etc/init.d/cupsd restart
> /etc/init.d/dbus restart
> /etc/init.d/ntpd restart
> /etc/init.d/ntp-client restart
> /etc/init.d/samba restart
> /etc/init.d/ekey-egd-linux restart
> /etc/init.d/ekeyd restart
>
> These processes do not seem to have an associated init script to
> restart them: sys-fs/udisks:
> 5357 /usr/libexec/udisks-daemon
> 5350 /usr/libexec/udisks-daemon
> sys-apps/util-linux:
> 5223 /sbin/agetty
> 5221 /sbin/agetty
> 5222 /sbin/agetty
> 5225 /sbin/agetty
> 5224 /sbin/agetty
> 27330 /sbin/agetty
> sys-power/upower:
> 5327 /usr/libexec/upowerd
> sys-auth/polkit:
> 4467 /usr/libexec/polkitd
>
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Re: Disk usage during emerge
2012-03-09 15:33 ` Paul Hartman
2012-03-09 16:45 ` Bryan Gardiner
@ 2012-03-09 17:09 ` Mark Knecht
2012-03-10 2:46 ` Bryan Gardiner
1 sibling, 1 reply; 21+ messages in thread
From: Mark Knecht @ 2012-03-09 17:09 UTC (permalink / raw
To: gentoo-user
On Fri, Mar 9, 2012 at 7:33 AM, Paul Hartman
<paul.hartman+gentoo@gmail.com> wrote:
> On Fri, Mar 9, 2012 at 12:38 AM, Bryan Gardiner <bog@khumba.net> wrote:
>> On Thu, 08 Mar 2012 17:56:18 +0200
>> Nikos Chantziaras <realnc@arcor.de> wrote:
>>
>>> I discovered this nifty little tool recently that tells you if any
>>> deleted files are currently being kept open by running processes:
>>> "app-admin/checkrestart". I usually run it after world updates so I
>>> can tell whether I need a restart or not.
>>
>> Because I'm too lazy to unkeyword and emerge it... Does this program
>> show how much space is being used by deleted files? Or, is there a way
>> to access more information about or even recover such a zombie file?
>> lsof gives its inode number, but I have no idea how to access it from
>> there.
>
> I just ran it, here's the output:
>
> Found 22 processes using old versions of upgraded files
> (15 distinct programs)
> (14 distinct packages)
>
Is there a way inside of checkrestart to determine exactly which
processes it's telling you about? When I installed it at on Niko's
suggestion I had one package but I couldn't figure out which it was. A
reboot fixed that.
Thanks,
Mark
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Re: Disk usage during emerge
2012-03-09 17:09 ` Mark Knecht
@ 2012-03-10 2:46 ` Bryan Gardiner
2012-03-10 2:49 ` Bryan Gardiner
2012-03-10 19:27 ` Mark Knecht
0 siblings, 2 replies; 21+ messages in thread
From: Bryan Gardiner @ 2012-03-10 2:46 UTC (permalink / raw
To: gentoo-user
On Fri, 9 Mar 2012 09:09:37 -0800
Mark Knecht <markknecht@gmail.com> wrote:
> On Fri, Mar 9, 2012 at 7:33 AM, Paul Hartman
> <paul.hartman+gentoo@gmail.com> wrote:
> >
> > I just ran it, here's the output:
> >
> > Found 22 processes using old versions of upgraded files
> > (15 distinct programs)
> > (14 distinct packages)
> >
>
> Is there a way inside of checkrestart to determine exactly which
> processes it's telling you about? When I installed it at on Niko's
> suggestion I had one package but I couldn't figure out which it was. A
> reboot fixed that.
>
> Thanks,
> Mark
>
From Paul's output:
> sys-apps/smartmontools:
> 5082 /usr/sbin/smartd
> sys-auth/consolekit:
> 4384 /usr/sbin/console-kit-daemon
This gives the package name, filename, and PID. Are you looking for
something else?
- Bryan
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Re: Disk usage during emerge
2012-03-10 2:46 ` Bryan Gardiner
@ 2012-03-10 2:49 ` Bryan Gardiner
2012-03-10 19:27 ` Mark Knecht
1 sibling, 0 replies; 21+ messages in thread
From: Bryan Gardiner @ 2012-03-10 2:49 UTC (permalink / raw
To: gentoo-user
On Fri, 9 Mar 2012 18:46:53 -0800
Bryan Gardiner <bog@khumba.net> wrote:
> On Fri, 9 Mar 2012 09:09:37 -0800
> Mark Knecht <markknecht@gmail.com> wrote:
> >
> > Is there a way inside of checkrestart to determine exactly which
> > processes it's telling you about? When I installed it at on Niko's
> > suggestion I had one package but I couldn't figure out which it
> > was. A reboot fixed that.
> >
> > Thanks,
> > Mark
> >
>
> From Paul's output:
> > sys-apps/smartmontools:
> > 5082 /usr/sbin/smartd
> > sys-auth/consolekit:
> > 4384 /usr/sbin/console-kit-daemon
>
> This gives the package name, filename, and PID. Are you looking for
> something else?
>
> - Bryan
>
(Actually I thought this was file size on first glance, exactly what
was asked for in the original question :)
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Re: Disk usage during emerge
2012-03-10 2:46 ` Bryan Gardiner
2012-03-10 2:49 ` Bryan Gardiner
@ 2012-03-10 19:27 ` Mark Knecht
2012-03-10 19:40 ` Mark Knecht
1 sibling, 1 reply; 21+ messages in thread
From: Mark Knecht @ 2012-03-10 19:27 UTC (permalink / raw
To: gentoo-user
On Fri, Mar 9, 2012 at 6:46 PM, Bryan Gardiner <bog@khumba.net> wrote:
> On Fri, 9 Mar 2012 09:09:37 -0800
> Mark Knecht <markknecht@gmail.com> wrote:
>> On Fri, Mar 9, 2012 at 7:33 AM, Paul Hartman
>> <paul.hartman+gentoo@gmail.com> wrote:
>> >
>> > I just ran it, here's the output:
>> >
>> > Found 22 processes using old versions of upgraded files
>> > (15 distinct programs)
>> > (14 distinct packages)
>> >
>>
>> Is there a way inside of checkrestart to determine exactly which
>> processes it's telling you about? When I installed it at on Niko's
>> suggestion I had one package but I couldn't figure out which it was. A
>> reboot fixed that.
>>
>> Thanks,
>> Mark
>>
>
> From Paul's output:
>> sys-apps/smartmontools:
>> 5082 /usr/sbin/smartd
>> sys-auth/consolekit:
>> 4384 /usr/sbin/console-kit-daemon
>
> This gives the package name, filename, and PID. Are you looking for
> something else?
>
> - Bryan
>
Hi Bryan,
When I run checkrestart here I don't get all the output you saw in
Paul's post. Right now I have no problems so the output is boring:
c2stable ~ # checkrestart
Found 0 processes using old versions of upgraded files
c2stable ~ #
However earlier, when I had 1 old file in use checkrestart told me I
had 1 process that needed to be restarted but didn't tell me which
one. It did say something like
Read checkrestart(1)
which I took to be a man page, but I couldn't get anything to come up using man.
Cheers,
Mark
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Re: Disk usage during emerge
2012-03-10 19:27 ` Mark Knecht
@ 2012-03-10 19:40 ` Mark Knecht
0 siblings, 0 replies; 21+ messages in thread
From: Mark Knecht @ 2012-03-10 19:40 UTC (permalink / raw
To: gentoo-user
On Sat, Mar 10, 2012 at 11:27 AM, Mark Knecht <markknecht@gmail.com> wrote:
> On Fri, Mar 9, 2012 at 6:46 PM, Bryan Gardiner <bog@khumba.net> wrote:
<SNIP>
>> From Paul's output:
>>> sys-apps/smartmontools:
>>> 5082 /usr/sbin/smartd
>>> sys-auth/consolekit:
>>> 4384 /usr/sbin/console-kit-daemon
>>
>> This gives the package name, filename, and PID. Are you looking for
>> something else?
>>
>> - Bryan
>>
>
> Hi Bryan,
> When I run checkrestart here I don't get all the output you saw in
> Paul's post. Right now I have no problems so the output is boring:
>
> c2stable ~ # checkrestart
> Found 0 processes using old versions of upgraded files
> c2stable ~ #
>
> However earlier, when I had 1 old file in use checkrestart told me I
> had 1 process that needed to be restarted but didn't tell me which
> one. It did say something like
>
> Read checkrestart(1)
>
> which I took to be a man page, but I couldn't get anything to come up using man.
>
> Cheers,
> Mark
Never mind. After an update this morning I had 67 old files in use and
checkrestart did tell me the scripts to restart. I must have missed it
before.
Cheers,
Mark
^ permalink raw reply [flat|nested] 21+ messages in thread
end of thread, other threads:[~2012-03-10 19:42 UTC | newest]
Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-08 2:57 [gentoo-user] Disk usage during emerge Frank Steinmetzger
2012-03-08 5:38 ` Paul Hartman
2012-03-08 6:08 ` Bryan Gardiner
2012-03-08 7:53 ` Julian Simioni
2012-03-08 7:54 ` Julian Simioni
2012-03-08 10:50 ` [gentoo-user] " Nikos Chantziaras
2012-03-08 14:55 ` Frank Steinmetzger
2012-03-08 15:56 ` Nikos Chantziaras
2012-03-08 20:01 ` Alan McKinnon
2012-03-08 23:42 ` walt
2012-03-09 0:05 ` Alan McKinnon
2012-03-09 0:28 ` Neil Bothwick
2012-03-09 0:29 ` Neil Bothwick
2012-03-09 6:38 ` Bryan Gardiner
2012-03-09 15:33 ` Paul Hartman
2012-03-09 16:45 ` Bryan Gardiner
2012-03-09 17:09 ` Mark Knecht
2012-03-10 2:46 ` Bryan Gardiner
2012-03-10 2:49 ` Bryan Gardiner
2012-03-10 19:27 ` Mark Knecht
2012-03-10 19:40 ` Mark Knecht
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox