Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo system is becoming less and less responsive
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Tom_
Guru
Guru


Joined: 20 May 2004
Posts: 444
Location: France

PostPosted: Tue Dec 29, 2009 10:27 am    Post subject: Gentoo system is becoming less and less responsive Reply with quote

Hello,

I've the impression that my Gentoo system is becoming less and less responsive.

I recently installed Fedora 12 on the same machine, and it seems much faster than my ~amd64 system! :( For instance, launching Firefox from Fedora is quite fast, whereas it is damn slow here!

Prelink and Preload are already running on this system!

Is that something that i can do to improve its performances ?

Are my flags too aggressive ?

Emerge --info : http://paste-it.net/public/w874aa6/

Kernel config : http://paste-it.net/public/m4b2122/

Thank you in advance!


Last edited by Tom_ on Wed Dec 30, 2009 9:34 am; edited 1 time in total
Back to top
View user's profile Send private message
sera
Retired Dev
Retired Dev


Joined: 29 Feb 2008
Posts: 1017
Location: CET

PostPosted: Tue Dec 29, 2009 10:42 am    Post subject: Reply with quote

If the system becomes slower and slower over time an almost full harddisk and the resulting fragmentation might be the cause. What gives you
Code:
df -h


For firefox the profile in ~/ can make a huge difference. If firefox loads the browser history of the last two years you are doomed so to speak. Broken addons might cause a slowdown as well. Try with a blank profile to compare loadtimes.
Back to top
View user's profile Send private message
Tom_
Guru
Guru


Joined: 20 May 2004
Posts: 444
Location: France

PostPosted: Tue Dec 29, 2009 10:46 am    Post subject: Reply with quote

df :
Code:
thomas@gentoo ~ % df -h
Sys. de fich.         Tail. Occ. Disp. %Occ. Monté sur
rootfs                 40G   35G  3,3G  92% /
/dev/root              40G   35G  3,3G  92% /
rc-svcdir             1,0M  136K  888K  14% /lib64/rc/init.d
udev                   10M  432K  9,6M   5% /dev
shm                  1005M  1,2M 1004M   1% /dev/shm
cachedir              4,0M  4,0K  4,0M   1% /lib64/splash/cache
/dev/sda5              15G  9,0G  4,8G  66% /home
/dev/sda4             182G  132G   41G  77% /home/thomas/Divers
/dev/sdc1             151G   41G  102G  29% /home/thomas/Divers2
/dev/sdb1             276G  227G   49G  83% /home/thomas/Documents
/dev/sda1              40G   37G  2,4G  94% /media/windows
/dev/sda7              18G  4,4G   13G  26% /media/fedora


Firefox was only an example! The problem is the same for the other applications! Everything seems slower on my Gentoo. :s

Thx
Back to top
View user's profile Send private message
aidanjt
Veteran
Veteran


Joined: 20 Feb 2005
Posts: 1118
Location: Rep. of Ireland

PostPosted: Tue Dec 29, 2009 10:50 am    Post subject: Reply with quote

sera was right, your rootfs is almost full while your fedora's rootfs is almost empty. Why do you have such a mess of partitions anyway?
_________________
juniper wrote:
you experience political reality dilation when travelling at american political speeds. it's in einstein's formulas. it's not their fault.
Back to top
View user's profile Send private message
sera
Retired Dev
Retired Dev


Joined: 29 Feb 2008
Posts: 1017
Location: CET

PostPosted: Tue Dec 29, 2009 10:53 am    Post subject: Reply with quote

Your rootfs is full to 92%, this is way more than it should be and most certainly the cause.

If you have space to make a copy of your rootfs to a bigger partition do so from a livecd.
Now change grub.conf to use the new one. If and only if this works over some time I would delete the old partition.

Removing old kernel sources might help to free a few GB as well.
Back to top
View user's profile Send private message
sera
Retired Dev
Retired Dev


Joined: 29 Feb 2008
Posts: 1017
Location: CET

PostPosted: Tue Dec 29, 2009 11:16 am    Post subject: Reply with quote

Btw you should use tar to copy to preserve file attributes.

As a comparison here my df -h:
Code:
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2             9.2G  1.5G  7.3G  17% /
udev                   10M  100K   10M   1% /dev
/dev/sda5             9.2G  3.3G  5.5G  38% /var
/dev/sda6             1.9G   72M  1.7G   4% /tmp
/dev/sda7              19G  8.9G  8.6G  51% /usr
/dev/sda9              97G   52G   40G  57% /home
none                 1005M     0 1005M   0% /var/tmp/paludis
none                 1005M     0 1005M   0% /dev/shm
/dev/sdc1             9.4G  1.2G  8.2G  13% /usr/local/repositories
/dev/sdb1             1.4T  312G  994G  24% /mnt/file_storage


A slightly older CPU (3700+), using stable, only -O2, no prelink nor preload and firefox starts 60 tabs in about 5 seconds. Tabswitching is instantaneous.
Back to top
View user's profile Send private message
Tom_
Guru
Guru


Joined: 20 May 2004
Posts: 444
Location: France

PostPosted: Tue Dec 29, 2009 11:45 am    Post subject: Reply with quote

I'm going to free some GB : old kernel sources, distfiles ... !

@AidanJT, I don't know why my partitions are so messy! I'll check that out!
Back to top
View user's profile Send private message
Tom_
Guru
Guru


Joined: 20 May 2004
Posts: 444
Location: France

PostPosted: Tue Dec 29, 2009 12:30 pm    Post subject: Reply with quote

I did a bit of cleaning and now i get 25GB free! :)

For the partitions, i found some explanations for rootfs and /dev/root : it seems related to OpenRC, and absolutely normal!

If you've any idea for the others, i would be glad to hear it.

With a new clean profile, Firefox starts much quickly. 8)

Thx!
Back to top
View user's profile Send private message
sera
Retired Dev
Retired Dev


Joined: 29 Feb 2008
Posts: 1017
Location: CET

PostPosted: Tue Dec 29, 2009 12:56 pm    Post subject: Reply with quote

This entry is normal for baselayout2. AidanJT probably meant the structure of /home and stuffing the rest of the system into just one partition.
Back to top
View user's profile Send private message
Tom_
Guru
Guru


Joined: 20 May 2004
Posts: 444
Location: France

PostPosted: Tue Dec 29, 2009 1:11 pm    Post subject: Reply with quote

I can't see the point of splitting the system in few partitions! I think it makes things more complicated!

I'm the only user of this machine, that's why my /home is structured like this :
- /home/thomas (my home) : settings and a few temporary docs
- /home/thomas/Documents : personal and important documents, pictures, important videos ...
- /home/thomas/Divers(2) : miscellaneous stuff : music, videos, dvb recordings ...
Back to top
View user's profile Send private message
sera
Retired Dev
Retired Dev


Joined: 29 Feb 2008
Posts: 1017
Location: CET

PostPosted: Tue Dec 29, 2009 2:05 pm    Post subject: Reply with quote

One of the problems with a single root partition is that a log file in /var can render your machine unbootable by taking all available space for instance.
For /tmp you most likely want to set the noexec option.
And so on.

There are reasons to split a rootfs. Primarly for security reasons but sometimes also for performance. In my case /usr/local/repositories lies on an fs with good small file performance. This partition includes the gentoo tree and all the cache files used in conjunction with repositories. The same files in /usr would take up around 4GB and read and write speeds would be halved or even worser.

Also on the fly compression/decompression may make enough difference for you. See the guides in this forum or on gentoo wiki regarding portage and squashfs for example.

I personally don't see why multiple partitions make things more complicated except for choosing partition size. However after using linux for a few years this should be easy enough for everyone.

Even so you have now space the files still are fragmented. Other than copy the rootfs an emerge -e world might greatly reduce the fragmentation now and is probably less error prone as it can be done in place.
Back to top
View user's profile Send private message
Tom_
Guru
Guru


Joined: 20 May 2004
Posts: 444
Location: France

PostPosted: Tue Dec 29, 2009 2:29 pm    Post subject: Reply with quote

This a desktop machine : creating partitions for security reasons is likely useless for me! However, this does matter for a server!

Having a special fs with good small file performance seems interesting : which fs do yo use ? ReiserFS ? What did you mean when you said that you store cache file in /usr/local/repositories? Portage cache files ?

I'll probably create a new partition for /usr/portage and the overlays with this kind of fs!

I'll also check out on the fly compression/decompression!

Can you copy/past your fstab ?

LVM2 could be nice to deal with multiple partitions easily but i don't really want to add a new layer. :roll:
Back to top
View user's profile Send private message
sera
Retired Dev
Retired Dev


Joined: 29 Feb 2008
Posts: 1017
Location: CET

PostPosted: Tue Dec 29, 2009 3:51 pm    Post subject: Reply with quote

Tom_ wrote:
This a desktop machine : creating partitions for security reasons is likely useless for me! However, this does matter for a server!

The log file example is real, have seen it happen twice. Where for the one having a separate /var partition only X refused to start. This were both desktops.


Quote:
Having a special fs with good small file performance seems interesting : which fs do yo use ? ReiserFS ? What did you mean when you said that you store cache file in /usr/local/repositories? Portage cache files?


I did choose XFS. JFS and ReiserFS are sure other options. However if you want ultimate speed go for a solution like squashfs or some preloding into memory.
Cache files of whatever. Portage, paludis, my own tools etc. So on this machine paludis is the main package manager.

Quote:
Can you copy/past your fstab ?


Sure, just don't take it as a school example. It reflects choices I made 5 years ago and honestly not much thought went into it.
For instance user implies noexec and nodev, so they are redundant and /tmp could be put into ram as well. So be it. Here you go:

Code:
/dev/sda1       /boot       ext2        noauto,noatime  1 2
/dev/sda2       /           ext3        noatime         0 1
/dev/sda3       none        swap        sw              0 0
/dev/sda5       /var        ext3        nosuid,defaults,noatime 0 0
/dev/sda6       /tmp        ext2        defaults,noexec,noatime 0 0
/dev/sda7       /usr        ext3        defaults,noatime 0 0

/dev/sda9       /home       ext3        defaults,nosuid,noatime 0 0

/dev/sdb1       /mnt/file_storage ext4  noauto,noexec,nodev,noatime,user 0 0

/dev/sdc1       /usr/local/repositories xfs noexec,nodev,noatime,nosuid 0 0

none    /var/tmp/paludis    tmpfs       uid=110,gid=1008,nr_inodes=1M   0 0
none            /dev/shm    tmpfs       nodev,nosuid,noexec 0 0


I omitted the entries not used during normal usage.

Quote:

LVM2 could be nice to deal with multiple partitions easily but i don't really want to add a new layer. :roll:


As this machine is a single core I think I'm better off without lvm.
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Tue Dec 29, 2009 5:51 pm    Post subject: Reply with quote

Tom_ wrote:
I'll probably create a new partition for /usr/portage and the overlays with this kind of fs!
You don't need to create a separate partition. Just create a separate file. Format it with ext2 and it will be good enough. Look here:
http://www.gentoo-wiki.info/TIP_Speeding_up_portage
_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum