View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 14 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Thu Apr 23, 2009 7:18 pm 
Offline
Joined: Tue Mar 28, 2006 8:26 pm
Posts: 804
Location: Minneapolis, MN
I just had a situation that caused me to look at how full my root partition was. It is a 4GB partition (auto created by the R5F27 auto install) and is about 75% full.

I read this page:
http://www.knoppmythwiki.org/index.php? ... kFullError
and then deleted old backups of the log files, but it didn't make more than 1% of a difference.

Is 75% a normal amount of "fullness" for a 4GB boot partition? Does it indicate anything is going wrong?

Eric

_________________
KnoppMyth R5.5, Asus A8N-VM CSM (nvidia 6150 onboard video), AMD Athlon 64 dual-core 4200+, two 1GB sticks DDR 400, HD-3000 HDTV card, PVR-150 card, Iguanaworks RS-232 IR receiver/transmitter, Pioneer DVR-110 DVD burner


Last edited by neutron68 on Sat May 16, 2009 11:01 am, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 24, 2009 12:50 am 
Offline
Joined: Fri Sep 15, 2006 12:16 pm
Posts: 292
That sounds within reason.

My 4.8G R5.5 root has 1.5G free.

I start to worry when it gets to be less than a gig free.

If you haven't rebooted in a while, you may find that space gets freed up when you do. Open files that have been deleted hang around till they are closed and some only get closed on reboot.

(as root) lsof | grep deleted
will show you the files that will get reclaimed on reboot. The second to last column is the file size as I recall.

Cliff


Top
 Profile  
 
 Post subject: deleted files
PostPosted: Fri Apr 24, 2009 8:56 am 
Offline
Joined: Tue Mar 28, 2006 8:26 pm
Posts: 804
Location: Minneapolis, MN
cliffsjunk wrote:
(as root) lsof | grep deleted
will show you the files that will get reclaimed on reboot. The second to last column is the file size as I recall.

Cliff

Here is the output from that command
Code:
root@mythtv:~#  lsof | grep deleted
gconfd-2   3767     mythtv   13wW     REG        8,1      617     448427 /tmp/gconfd-mythtv/lock/0t1240526608ut979295u100p3767r828616530k3214120936 (deleted)
mysqld    12953      mysql    4u      REG        8,1        0     448258 /tmp/ibmBJFKJ (deleted)
mysqld    12953      mysql    5u      REG        8,1      224     448260 /tmp/ibwrsLkj (deleted)
mysqld    12953      mysql    6u      REG        8,1        0     448262 /tmp/ibEInIUS (deleted)
mysqld    12953      mysql    7u      REG        8,1        0     448263 /tmp/ibEtKWIs (deleted)
mysqld    12953      mysql   11u      REG        8,1        0     448266 /tmp/ib2mno1o (deleted)
root@mythtv:~#

The file sizes don't look like they add up to much.
I guess there's nothing out of the ordinary.

Eric

_________________
KnoppMyth R5.5, Asus A8N-VM CSM (nvidia 6150 onboard video), AMD Athlon 64 dual-core 4200+, two 1GB sticks DDR 400, HD-3000 HDTV card, PVR-150 card, Iguanaworks RS-232 IR receiver/transmitter, Pioneer DVR-110 DVD burner


Top
 Profile  
 
 Post subject: Re: deleted files
PostPosted: Fri Apr 24, 2009 11:13 am 
Offline
Joined: Fri Apr 02, 2004 10:08 am
Posts: 1637
Location: Virginia, USA
Have you checked /tmp for other files to delete? I've had problems with transcoding failing, and have found lots of temp files in there that didn't get deleted after reboots.


Top
 Profile  
 
 Post subject: Re: deleted files
PostPosted: Fri Apr 24, 2009 2:31 pm 
Offline
Joined: Tue Mar 28, 2006 8:26 pm
Posts: 804
Location: Minneapolis, MN
ceenvee703 wrote:
Have you checked /tmp for other files to delete? I've had problems with transcoding failing, and have found lots of temp files in there that didn't get deleted after reboots.

I do have a number of directories inside the /tmp folder which are in the following name format: "mythtv_ddp_mWNxKi".
They range in date from Feb.11 to April.23 of 2009.

They contain files such as "mythtv_dd_cache_1_[my-email-address]_UTC_20090315050000_to_20090316050000"
I'm not 100% sure what they are. Could they be program guide updates?

Should I go in and delete them or will they get deleted by the system?

What about old downloaded .tar, .gz and .bz2 files?
Is there a command line command that will show me where all the old tar files are sitting?
The command "locate *.tar" does not work. It lists everything on the hard drive, it appears.

Eric

_________________
KnoppMyth R5.5, Asus A8N-VM CSM (nvidia 6150 onboard video), AMD Athlon 64 dual-core 4200+, two 1GB sticks DDR 400, HD-3000 HDTV card, PVR-150 card, Iguanaworks RS-232 IR receiver/transmitter, Pioneer DVR-110 DVD burner


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 24, 2009 2:43 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
Get a program from the repo (apt-get) called ncdu which is very helpful for diagnosing exactly where space is on your system. You can then see about removing the offending files to cleanup some room. My understanding is that most filesystems like to have around 80 % free space to keep defragged.

For your reference, my / partition on my R5.5 box is 4.6 G total and 2.4 G used.

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 24, 2009 4:56 pm 
Offline
Joined: Fri Apr 02, 2004 10:08 am
Posts: 1637
Location: Virginia, USA
I have similar ratios to graysky: 2.6 G used out of 4.6 G total, 59% used. 75% seemed high when you mentioned it.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 24, 2009 5:15 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
@op - post the output of ncdu -x on your / as the root user.
Code:
# ncdu -x /
ncdu 1.3 ~ Use the arrow keys to navigate, press ? for help                                   
--- / -----------------------------------------------------------------------------------------
    1.7GB [##########] /usr                                                                   
  303.8MB [#         ] /var
  146.7MB [          ] /home
   71.6MB [          ] /lib
   15.8MB [          ] /etc
   12.4MB [          ] /sbin
   11.4MB [          ] /root
    4.7MB [          ] /boot
    3.9MB [          ] /bin
    1.2MB [          ] /tmp
e  16.0kB [          ] /lost+found
e   4.0kB [          ] /.qt
e   4.0kB [          ] /cdrom
e   4.0kB [          ] /initrd
e   4.0kB [          ] /media
e   4.0kB [          ] /mnt
e   4.0kB [          ] /opt
e   4.0kB [          ] /srv
    4.0kB [          ]  knoppmyth
    4.0kB [          ]  knoppmyth-sata
@   0.0 B [          ]  vmlinuz
>   0.0 B [          ] /dev
>   0.0 B [          ] /myth
>   0.0 B [          ] /proc
>   0.0 B [          ] /sys

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject: here it is
PostPosted: Sun Apr 26, 2009 7:15 pm 
Offline
Joined: Tue Mar 28, 2006 8:26 pm
Posts: 804
Location: Minneapolis, MN
Code:
root@mythtv:~# ncdu -x /
ncdu 1.3 ~ Use the arrow keys to navigate, press ? for help
--- / ---------------------------------------------------------------------------------------------------
    1.9GB [##########] /usr
  472.2MB [##        ] /var
  367.9MB [#         ] /tmp
  207.1MB [#         ] /home
   74.0MB [          ] /lib
   15.6MB [          ] /etc
   12.4MB [          ] /sbin
   11.5MB [          ] /root
    4.8MB [          ] /boot
    3.9MB [          ] /bin
e  16.0kB [          ] /lost+found
   16.0kB [          ]  R5.5.patches.tar.bz2
e   4.0kB [          ] /.qt
e   4.0kB [          ] /cdrom
e   4.0kB [          ] /initrd
e   4.0kB [          ] /media
e   4.0kB [          ] /mnt
e   4.0kB [          ] /opt
e   4.0kB [          ] /srv
    4.0kB [          ]  knoppmyth
    4.0kB [          ]  knoppmyth-sata
@   0.0 B [          ]  vmlinuz
>   0.0 B [          ] /dev
>   0.0 B [          ] /myth
>   0.0 B [          ] /proc
>   0.0 B [          ] /sys

_________________
KnoppMyth R5.5, Asus A8N-VM CSM (nvidia 6150 onboard video), AMD Athlon 64 dual-core 4200+, two 1GB sticks DDR 400, HD-3000 HDTV card, PVR-150 card, Iguanaworks RS-232 IR receiver/transmitter, Pioneer DVR-110 DVD burner


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 27, 2009 1:38 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
Just comparing your output to mine, looks like you can squeeze a bit in the /home /var and /usr partitions.

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject: agreed
PostPosted: Mon Apr 27, 2009 1:59 pm 
Offline
Joined: Tue Mar 28, 2006 8:26 pm
Posts: 804
Location: Minneapolis, MN
graysky wrote:
Just comparing your output to mine, looks like you can squeeze a bit in the /home /var and /usr partitions.

I agree, those directories are more full on my system than yours.

Could .deb files from downloaded apt-get software packages be a big part of the /var folder contents?
I used "locate *.deb" and found a bunch of .deb files in /var/cache/apt/archives folder.

Also, there are a number of directories inside the /tmp folder which are in the following name format: "mythtv_ddp_mWNxKi".
They range in date from Feb.11 to April.23 of 2009.
They contain files such as "mythtv_dd_cache_1_[my-email-address]_UTC_20090315050000_to_20090316050000"
They look like program guide updates?
Should I go in and delete them manually or will they get deleted by the system?

Eric

_________________
KnoppMyth R5.5, Asus A8N-VM CSM (nvidia 6150 onboard video), AMD Athlon 64 dual-core 4200+, two 1GB sticks DDR 400, HD-3000 HDTV card, PVR-150 card, Iguanaworks RS-232 IR receiver/transmitter, Pioneer DVR-110 DVD burner


Top
 Profile  
 
 Post subject: deleted directories
PostPosted: Tue May 05, 2009 8:24 pm 
Offline
Joined: Tue Mar 28, 2006 8:26 pm
Posts: 804
Location: Minneapolis, MN
I just removed all those "mythtv_ddp_*" directories in the /tmp directory and the usage went WAY down.
I do think those were schedule data temp files.
I wonder why they didn't get deleted automatically?
Code:
root@mythtv:/tmp# ncdu -x /
ncdu 1.3 ~ Use the arrow keys to navigate, press ? for help
--- / ------------------------------------------------------------------------------------------------------------------------------------
    1.9GB [##########] /usr
  513.8MB [##        ] /var
  207.1MB [#         ] /home
   74.0MB [          ] /lib
   15.6MB [          ] /etc
   12.4MB [          ] /sbin
   11.5MB [          ] /root
    4.8MB [          ] /boot
    3.9MB [          ] /bin
  324.0kB [          ] /tmp
e  16.0kB [          ] /lost+found
   16.0kB [          ]  R5.5.patches.tar.bz2
e   4.0kB [          ] /.qt
e   4.0kB [          ] /cdrom
e   4.0kB [          ] /initrd
e   4.0kB [          ] /media
e   4.0kB [          ] /mnt
e   4.0kB [          ] /opt
e   4.0kB [          ] /srv
    4.0kB [          ]  knoppmyth
    4.0kB [          ]  knoppmyth-sata
@   0.0 B [          ]  vmlinuz
>   0.0 B [          ] /dev
>   0.0 B [          ] /myth
>   0.0 B [          ] /proc
>   0.0 B [          ] /sys

_________________
KnoppMyth R5.5, Asus A8N-VM CSM (nvidia 6150 onboard video), AMD Athlon 64 dual-core 4200+, two 1GB sticks DDR 400, HD-3000 HDTV card, PVR-150 card, Iguanaworks RS-232 IR receiver/transmitter, Pioneer DVR-110 DVD burner


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 16, 2009 10:54 am 
Offline
Joined: Fri Sep 15, 2006 12:16 pm
Posts: 292
I've seen that too (R5.5) where old schedule downloads take up a lot of /tmp over time.


Top
 Profile  
 
PostPosted: Sat May 16, 2009 11:00 am 
Offline
Joined: Tue Mar 28, 2006 8:26 pm
Posts: 804
Location: Minneapolis, MN
cliffsjunk wrote:
I've seen that too (R5.5) where old schedule downloads take up a lot of /tmp over time.

This is good feedback! I just went and looked at my /tmp directory again. Since I manually deleted the scheduling data directories, it is accumulating old scheduling data again.

What mechanism used to remove the scheduling data in older versions of Knoppmyth prior to R5.5?

_________________
KnoppMyth R5.5, Asus A8N-VM CSM (nvidia 6150 onboard video), AMD Athlon 64 dual-core 4200+, two 1GB sticks DDR 400, HD-3000 HDTV card, PVR-150 card, Iguanaworks RS-232 IR receiver/transmitter, Pioneer DVR-110 DVD burner


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu