Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Resource allocation works really bad
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
MaGIc laNTern
n00b
n00b


Joined: 29 May 2007
Posts: 6

PostPosted: Thu May 31, 2007 5:56 pm    Post subject: [solved] Resource allocation works really bad Reply with quote

Everything works. Works fine, so Gentoo is like my favourite Linux distribution. But it works really slowly when I am trying to run few processes together. For example, if I run compiling or file copying, I cannot listen to music (it plays brokenly) and my mouse cursor also goes very slowly. Also, if I close all the applications and run some game, it works fast and absolutely normal. FPS is even grander than I have in Mandriva Free 2007.

My kernel is 2.6.21-gentoo-r1. I tried with this and this .config files.

Here, my computer configuration.
Motherboard: Asus P5RD2-VM
Central processing unit: Intel Celeron D, 2.53 GHz
— In the kernel I have chosen Processor family: Pentium-4/Celeron(P4-based)/Pentium-4 M/older Xeon
Primary storage: 2 GB of memory by two 1GB Kingston modules with 667 MHz frequency
Video card: nVidia GeForce 7600 GT with 256 MB of DDR3 storage
— The drivers are nvidia-drivers

And, here, my /etc/make.conf.
Code:
INPUT_DEVICES="keyboard mouse"
VIDEO_CARDS="nvidia"
ACCEPT_KEYWORDS="~x86"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
CHOST="i686-pc-linux-gnu"


Last edited by MaGIc laNTern on Wed Jun 06, 2007 10:33 am; edited 1 time in total
Back to top
View user's profile Send private message
warrawarra
Tux's lil' helper
Tux's lil' helper


Joined: 30 May 2007
Posts: 84

PostPosted: Thu May 31, 2007 6:38 pm    Post subject: Reply with quote

Not sure but prescott is for dual core + have to check.

http://gentoo-wiki.com/Safe_Cflags#Pentium_4_.28Prescott.29_.2F_Celeron_D

Looks correct (the prescott) .

Might also want to add -msse3 and -m32 after -pipe. might be sse2 only have to check.

CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer -msse3 -m32"

Any idea what your -j?? is my core duo t2600 laptop 2.16ghz is at -j3 -s and it goes to max 90% load on both core's while I compile and becomes slugish same as with yours.

MAKEOPTS="-j2 -s"
-j? = cpu+1 although -j16 -s worked on my laptop and has much less problem / freezing like what you are experiencing.

-j3 / -j5 both made mine slugish and lagging.
-j16 did not weard ?

Also try same as for pentuim 4M norwood mobile cpu might make it better and have "-j2 -s" and parallel fetch.

Hope this helps.
Back to top
View user's profile Send private message
MaGIc laNTern
n00b
n00b


Joined: 29 May 2007
Posts: 6

PostPosted: Fri Jun 01, 2007 5:09 pm    Post subject: Reply with quote

Well, I am really scared to try various make.conf variables because I have already recompiled all the system few times. By the manual, my make.conf looks fine, after all. Maybe I can see something in Mandriva Linux where everything works okay?
Back to top
View user's profile Send private message
MaGIc laNTern
n00b
n00b


Joined: 29 May 2007
Posts: 6

PostPosted: Wed Jun 06, 2007 10:32 am    Post subject: Reply with quote

Now, the trouble is solved. First, I have deleted Mandriva 2007 from my SATA disk and moved Gentoo to this disk (previously Gentoo was on an IDE disk). Then, I also enbabled DMA in the kernel. So, Gentoo became fast, very fast, really faster, than Mandriva. Thanks everyone!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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