My Mandriva home is full! Topic is solved

Need help with your Linux distro? All questions are good - not all answers are -but we try

Moderator: jkerr82508

User avatar
dedanna1029
Sound-Berserk
Posts: 8784
Joined: 14 Mar 2010, 20:29
Contact:

Re: My Mandriva home is full!

Postby dedanna1029 » 11 Jun 2013, 19:55

dedanna1029 wrote:

Code: Select all

du -akx / | sort -nr | head -n 25

Beware this code in Mageia, whatever folder you're using it on. It uses, on average, 80%-100% CPU, and will bog you to no end. I have had to use it several times today to get my / straightened out. It seemed that no matter how many games I uninstalled, my / size would increase every time I uninstalled something (yeah, strange):

Code: Select all

[root@dedanna ~]# du -akx / | sort -nr | head -n 25
20610323   /
18264275   /usr
13967335   /usr/share
8601747   /usr/share/games
2956667   /usr/lib
1620116   /var
1250986   /usr/share/games/vegastrike
1202731   /usr/share/alienarena
1200786   /usr/share/alienarena/data1
984459   /var/log
974896   /var/log/journal/24462e417e974066a458aeeccefa29bd
974896   /var/log/journal
922930   /usr/share/games/ufoai
916445   /usr/share/games/ufoai/base
867659   /usr/share/games/nexuiz/data
867659   /usr/share/games/nexuiz
867627   /usr/share/games/nexuiz/data/data20091001.pk3
707871   /usr/bin
697273   /usr/share/doc
637998   /opt
583408   /usr/share/icons
570041   /usr/share/games/torcs
539431   /usr/share/games/megaglest
502261   /usr/share/games/vegastrike/units
438509   /usr/share/alienarena/data1/maps
[root@dedanna ~]#

It seems /var/log is the culprit right now, not much I can do about it until logrotate's done.
Here's the kicker:

Code: Select all

:) top

top - 12:44:27 up 12:56,  2 users,  load average: 2.14, 2.22, 1.80
Tasks: 154 total,   2 running, 152 sleeping,   0 stopped,   0 zombie
Cpu(s): 25.9%us, 36.3%sy,  0.0%ni, 25.3%id, 11.5%wa,  0.2%hi,  0.9%si,  0.0%st
Mem:   1020056k total,   921860k used,    98196k free,    83520k buffers
Swap:  2103348k total,   353816k used,  1749532k free,   218308k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                         
--> 4468 root      20   0  6116 1164  636 D   60  0.1   0:59.15 du                                                             
--> 4469 root      20   0 10148 5132  820 R   26  0.5   1:14.91 sort                                                           
 2068 dedanna   20   0  392m  61m  19m S   11  6.2  63:05.20 plasma-desktop                                                 
  720 root      20   0 69204  24m  11m S    6  2.5  43:17.50 X                                                               
 4013 dedanna   20   0 90912  17m  13m S    5  1.7   0:31.84 kswarm.kss                                                     
 1762 dedanna   20   0  254m  32m  13m S    3  3.3   0:53.98 kopete                                                         
 2959 dedanna   20   0 70300  15m 6556 S    2  1.6   0:40.20 python                                                         
 4328 dedanna   20   0  191m  33m  23m S    2  3.4   0:28.77 dolphin                                                         
 2616 dedanna   20   0 64212  16m 4192 S    1  1.6   4:55.47 net_applet                                                     
 4711 dedanna   20   0  2872 1116  832 R    1  0.1   0:00.28 top

... and that was at the second it wasn't at 100%, which was rare. I've never had it take up so much CPU power until Mageia.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: My Mandriva home is full! [SOLVED]

Postby viking60 » 11 Jun 2013, 20:42

Well I installed ncdu and it shows that my virtualbox is still the biggest but that is reserved space so it is OK
My big extra now is the old home that I have copied over to this computer and it will eventually disappear.
At the moment I am using 87% and everything is blistering fast.
Image

And ncdu does not take much CPU.
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

jkerr82508
Guru-Berserk
Posts: 211
Joined: 16 Oct 2010, 21:45
Location: Fife, Scotland

Re: My Mandriva home is full! [SOLVED]

Postby jkerr82508 » 11 Jun 2013, 21:53

On my Mageia box that command takes only a few seconds to complete and never uses more than 30% of CPU, but then, I don't have any games installed, and my / partition uses less than 7 GB. :-D

Jim

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: My Mandriva home is full! [SOLVED]

Postby viking60 » 11 Jun 2013, 22:10

jkerr82508 wrote:On my Mageia box that command takes only a few seconds to complete and never uses more than 30% of CPU, but then, I don't have any games installed, and my / partition uses less than 7 GB. :-D

Jim


That's almost cheating! :naughty: :-D
My Home is more than 30 times bigger and I have steam and games (to many of them are auto installed so it makes good sense to remove those though)
I simply click on the group kdegames and remove the ones I do not want.
Image
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

jkerr82508
Guru-Berserk
Posts: 211
Joined: 16 Oct 2010, 21:45
Location: Fife, Scotland

Re: My Mandriva home is full! [SOLVED]

Postby jkerr82508 » 11 Jun 2013, 22:12

ncdu is new to me, but it is fast and looks to be a really powerful tool. I haven't explored all the options yet - that will be something to do during my next "playtime". Lot's more fun than playing "games". :cheers

Jim

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: My Mandriva home is full! [SOLVED]

Postby viking60 » 11 Jun 2013, 22:32

:cheers True!
ncdu is in the rosa repos so I guess you have it in Mageia too (mine is not working at the moment because the update toke to much space - oh the irony :lol: )
You just highlight what you want to look at and go one level down with ARROW RIGHT and back with ARROW LEFT
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8784
Joined: 14 Mar 2010, 20:29
Contact:

Re: My Mandriva home is full! [SOLVED]

Postby dedanna1029 » 12 Jun 2013, 05:35

I've just realized that it wasn't my root space being used that was going up. The meter on my desktop that I use switched gears on me and decided to start showing available space, rather than used space (and it's normally used space that it shows).
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html


Return to “Help”