Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
System is choppy, any ideas?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
HeadHolio
Guru
Guru


Joined: 10 Aug 2002
Posts: 445

PostPosted: Thu Aug 19, 2004 3:07 am    Post subject: System is choppy, any ideas? Reply with quote

Ok, I notice that when playing games, or when the system is under a little load (rsync, emerging...etc) my mouse is choppy. The choppyness seems to happen every 4 seconds or so. It also sometimes makes sound studder. I've tried three different kernels (a Gentoo-sources 2.4 kernel, a CK-Sources 2.4 kernel, and a CK-Sources 2.6 kernel) and I get the exact same result with each one. I've also checked to ensure that I have DMA enabled for my hard drive. I can't seem to figure this out. That last thing that I can think of is a rogue process running in the background or something, but I have no idea how to go about checking for that. Anyone care to lend a hand?
Back to top
View user's profile Send private message
Riftwing
Apprentice
Apprentice


Joined: 06 Oct 2002
Posts: 293

PostPosted: Thu Aug 19, 2004 3:33 am    Post subject: Reply with quote

Erm if you're playing a game like ut2004 etc I doubt you'll get good performance if you're compiling something at the same time.
_________________
Good, bad, I'm the guy with the gun. - Ash, Army of Darkness
Back to top
View user's profile Send private message
HeadHolio
Guru
Guru


Joined: 10 Aug 2002
Posts: 445

PostPosted: Thu Aug 19, 2004 3:37 am    Post subject: Not while compiling..... Reply with quote

No no no..........I get choppy desktop performance while compiling, and I get choppy game performance with nothing else running. Glxgears gives me just over 5500 fps at 1024x768. But I can see the gears aren't running smooth, they studder.
Back to top
View user's profile Send private message
electrofreak
l33t
l33t


Joined: 30 Jun 2004
Posts: 713
Location: Ohio, USA

PostPosted: Thu Aug 19, 2004 4:18 am    Post subject: Reply with quote

run 'top' to see if you have some process that is stealling the power. Also, definately use a 2.6 kernel, it has a lot less latency than the 2.4 kernels.
Back to top
View user's profile Send private message
PsychoDad
Tux's lil' helper
Tux's lil' helper


Joined: 14 Apr 2004
Posts: 96
Location: Israel

PostPosted: Thu Aug 19, 2004 11:56 am    Post subject: Reply with quote

enable DMA on your hardrive....
_________________
BUFU = Buy Us Fu*k U ! :)
Back to top
View user's profile Send private message
HeadHolio
Guru
Guru


Joined: 10 Aug 2002
Posts: 445

PostPosted: Thu Aug 19, 2004 2:18 pm    Post subject: Ugh... Reply with quote

Ya thanks, but like I said in my original post....DMA is enabled. That was the first thing I checked. I've never heard of TOP before. I'll try running it and see what it shows.
Back to top
View user's profile Send private message
HeadHolio
Guru
Guru


Joined: 10 Aug 2002
Posts: 445

PostPosted: Fri Aug 20, 2004 1:42 am    Post subject: Top Reply with quote

Ok, top shows me a lot, but I'm not sure what I'm looking for. Anyways, I see a bunch of processes, sometimes they change, and sometimes some are highlighted bold. But overall, I don't see any process taking up too much CPU load, except for things like Quake3 taking around 96-99%.
Back to top
View user's profile Send private message
senectus
Guru
Guru


Joined: 17 Jul 2003
Posts: 534

PostPosted: Fri Aug 20, 2004 1:50 am    Post subject: Reply with quote

Uh.. not sure how its done but try to find out how to "nice" things with a high priority.. and "nice" quack3 at the top... ?
_________________
2800+XP A7N8X FX6600GT
www.modmeup.net |
Belief is 9/10 of YOUR reality.
Wise man say: A skilled troll is a master baiter.
Back to top
View user's profile Send private message
HeadHolio
Guru
Guru


Joined: 10 Aug 2002
Posts: 445

PostPosted: Fri Aug 20, 2004 3:09 am    Post subject: I tried nicing Reply with quote

Ya I had already tried re-nicing X from 0 to -10, and then to -20. All of which did absolutely nothing for the studdering/choppy problem. Any other ideas?
Back to top
View user's profile Send private message
aethyr
Veteran
Veteran


Joined: 06 Apr 2003
Posts: 1085
Location: NYC

PostPosted: Fri Aug 20, 2004 4:32 am    Post subject: Reply with quote

Why not try a vanilla 2.6 kernel?

Are you running any services in the background (mysql, apache, sshd, ftp, etc...)?

[edit] As far as top:
Code:
The  top program provides a dynamic real-time view of a running system.  It can display system summary information as well as a  list  of  tasks currently  being managed by the Linux kernel.


Running top will show you a list of processes in the order of which is using the most cpu (at the top) to the least (at the bottom). Usually if something is taking an inordinate amount of memory or processing power, it will show up here. You can also check "free -m" to see if you're using up all your RAM (which can make your system run less than smooth).
Back to top
View user's profile Send private message
HeadHolio
Guru
Guru


Joined: 10 Aug 2002
Posts: 445

PostPosted: Fri Aug 20, 2004 10:27 am    Post subject: maybe Reply with quote

I could try a Vanilla 2.6 kernel but I thought that a CK kernel would give me the best desktop performance (mm-sources kernel wouldn't compile for me). I somehow doubt that it's a kernel related issue just because performance has been identicle on 3 different kernels so far. As for the memory, I think I'm getting something weird:

Code:
bash-2.05b# free -m
             total       used       free     shared    buffers     cached
Mem:           755        731         24          0         99        403
-/+ buffers/cache:        227        527
Swap:          203         13        189
bash-2.05b#


Am I seeing things right.....is all my memory being used???? Shouldn't I have tons of free memory? What could be using soo much memory? Top doesn't show anything using that much memory.
Back to top
View user's profile Send private message
mattjgalloway
l33t
l33t


Joined: 16 Mar 2004
Posts: 761
Location: Coventry, UK

PostPosted: Fri Aug 20, 2004 10:57 am    Post subject: Reply with quote

I get studdery mouse and sound aswell.

You know the problem? I can only use vanilla sources. Any other sources and it goes studdery. I have tried gentoo-sources of the same version number as vanilla-sources. There's something wrong in the gentoo sources somewhere, but I just use vanilla - works fine then.

Try a vanilla 2.4.27 - I have that running sweet. I've tried 2.6.7 aswell which is also fine for me.
_________________
AMD64 3200+, 1024MB RAM, Gentoo Linux
MacBook Core Duo, 1024MB RAM, Leopard
Back to top
View user's profile Send private message
HeadHolio
Guru
Guru


Joined: 10 Aug 2002
Posts: 445

PostPosted: Fri Aug 20, 2004 12:29 pm    Post subject: Bah...I give. Reply with quote

Ok, you guys talked me into it. When I get home I will start compiling a vanilla 2.6 kernel and a vanilla 2.4 kernel and give them both a try.
Back to top
View user's profile Send private message
mattjgalloway
l33t
l33t


Joined: 16 Mar 2004
Posts: 761
Location: Coventry, UK

PostPosted: Fri Aug 20, 2004 1:15 pm    Post subject: Reply with quote

Good stuff. You won't regret it ;)
_________________
AMD64 3200+, 1024MB RAM, Gentoo Linux
MacBook Core Duo, 1024MB RAM, Leopard
Back to top
View user's profile Send private message
jftuga
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jan 2004
Posts: 139
Location: Athens, GA

PostPosted: Fri Aug 20, 2004 3:57 pm    Post subject: Reply with quote

Instead of running just 'top', try 'top -id1'. The -i toggles off idle processes and the -d sets the refresh time to 1 second. Once inside of top, you can press i to toggle the process list and press s to change the delay time, which can be fractions. You can even set the delay to .2 seconds, but then top becomes a cpu hog itself.

Press q quits out of top.

-John
Back to top
View user's profile Send private message
mattjgalloway
l33t
l33t


Joined: 16 Mar 2004
Posts: 761
Location: Coventry, UK

PostPosted: Fri Aug 20, 2004 3:59 pm    Post subject: Reply with quote

Alternatively press 'h' inside top for a run down on all the commands. You can even save your current setup which is useful. I find that I like a certain layout and like to come back to the same one. I have delay set to 2, it's nice and doesn't hog CPU!
_________________
AMD64 3200+, 1024MB RAM, Gentoo Linux
MacBook Core Duo, 1024MB RAM, Leopard
Back to top
View user's profile Send private message
aethyr
Veteran
Veteran


Joined: 06 Apr 2003
Posts: 1085
Location: NYC

PostPosted: Fri Aug 20, 2004 4:58 pm    Post subject: Reply with quote

Actually, your memory usage is fine. Linux tends to put a lot of things in memory cache, thereby using up as much RAM as it can.

The important thing there is that your swap is hardly being touched (only 13 megs). If you had a memory problem, you'd also see a lot of swap space being used.
Back to top
View user's profile Send private message
mattjgalloway
l33t
l33t


Joined: 16 Mar 2004
Posts: 761
Location: Coventry, UK

PostPosted: Fri Aug 20, 2004 5:29 pm    Post subject: Reply with quote

Is lots of swap space being used a bad thing?

I get tonnes of swap usage with 1024mb RAM. The RAM is fine though, it's Crucial DDR3200 which runs through memtest as sweet as a chocolate gateaux on legs.

What's lots of swap space being used got to do with bad RAM?
_________________
AMD64 3200+, 1024MB RAM, Gentoo Linux
MacBook Core Duo, 1024MB RAM, Leopard
Back to top
View user's profile Send private message
HeadHolio
Guru
Guru


Joined: 10 Aug 2002
Posts: 445

PostPosted: Fri Aug 20, 2004 9:14 pm    Post subject: Vanilla kernel is the same Reply with quote

Ya, the vanilla kernel was no help. If anything, it's a little worse.
Back to top
View user's profile Send private message
mattjgalloway
l33t
l33t


Joined: 16 Mar 2004
Posts: 761
Location: Coventry, UK

PostPosted: Sat Aug 21, 2004 12:04 am    Post subject: Reply with quote

Doh!

It works for me :-(

What version did you try?

Also, what is your system setup? How much RAM, swap, CPU info, etc.
_________________
AMD64 3200+, 1024MB RAM, Gentoo Linux
MacBook Core Duo, 1024MB RAM, Leopard
Back to top
View user's profile Send private message
tomchuk
Guru
Guru


Joined: 23 Mar 2003
Posts: 317
Location: Brooklyn, NY

PostPosted: Sat Aug 21, 2004 3:00 am    Post subject: Reply with quote

Sounds like the choppiness coincides with disc access, no? What kind of drives, partition layout, filesystem, ide controller, etc are you using?
Back to top
View user's profile Send private message
HeadHolio
Guru
Guru


Joined: 10 Aug 2002
Posts: 445

PostPosted: Sat Aug 21, 2004 4:46 am    Post subject: System specs Reply with quote

Ok, here are my specs:

Athlon 1600+ at 1400 MHz
768MB DDRAM at 266MHz
200MB Swap
Maxtor 40Gig Hard drive ATA133 8MB

Partion layout is:
10 gig mounted at "/" as a reiserfs
30 gig mounted at "/home" as a reiserfs
100 MB mounted at "/boot" as ext3

And here is some useful info from my dmesg:
Code:
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller at PCI slot 00:11.1
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: VIA vt8233a (rev 00) IDE UDMA133 controller on pci00:11.1
    ide0: BM-DMA at 0xe000-0xe007, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0xe008-0xe00f, BIOS settings: hdc:DMA, hdd:DMA
hda: MAXTOR 6L040J2, ATA DISK drive
blk: queue c03f0ba0, I/O limit 4095Mb (mask 0xffffffff)
hdc: LITE-ON LTR-48246S, ATAPI CD/DVD-ROM drive
hdd: HL-DT-ST DVDRAM GSA-4040B, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: attached ide-disk driver.
spurious 8259A interrupt: IRQ7.
hda: host protected area => 1
hda: 78177792 sectors (40027 MB) w/1818KiB Cache, CHS=4866/255/63, UDMA(133)
hdc: attached ide-cdrom driver.
hdc: ATAPI 48X CD-ROM CD-R/RW drive, 2048kB Cache
Uniform CD-ROM driver Revision: 3.12
hdd: attached ide-cdrom driver.
hdd: ATAPI 32X DVD-ROM DVD-R-RAM CD-R/RW drive, 2048kB Cache
Partition check:
 /dev/ide/host0/bus0/target0/lun0: p1 p2 p3 p4
IEEE 802.2 LLC for Linux 2.1 (c) 1996 Tim Alpaerts


Is that enough info?

[EDIT] I forgot to mention that I tried Vanilla kernel 2.6.8.1 and it was a little worse.
Back to top
View user's profile Send private message
mattjgalloway
l33t
l33t


Joined: 16 Mar 2004
Posts: 761
Location: Coventry, UK

PostPosted: Sat Aug 21, 2004 9:01 am    Post subject: Reply with quote

Well, for a start you only have 200MB swap space. Most people will say you need at *least* the amount og your RAM... I'm not sure how much of an affect that will have though.

Try a 2.4 kernel. I've had problems with 2.6 and I've also had problems with choppyness - maybe it's something similar with our hardware, who knows. I have no problems with choppyness together with 2.6-vanilla though. A 2.4-vanilla is worth a try though.
_________________
AMD64 3200+, 1024MB RAM, Gentoo Linux
MacBook Core Duo, 1024MB RAM, Leopard
Back to top
View user's profile Send private message
tomchuk
Guru
Guru


Joined: 23 Mar 2003
Posts: 317
Location: Brooklyn, NY

PostPosted: Sat Aug 21, 2004 12:24 pm    Post subject: Reply with quote

He started with a 2.4 kernel, if 2.6 is choppy, 2.4, in theory, should be much worse.

I'd agree that 200MB of swap isn't really enough and may cause some problems, but I can't see how it'd lead to choppiness.

Another thought: do you have kernel preemption turned on? Try turning it off.

Do you mind posting your config for your 2.6 kernel?
Back to top
View user's profile Send private message
mattjgalloway
l33t
l33t


Joined: 16 Mar 2004
Posts: 761
Location: Coventry, UK

PostPosted: Sat Aug 21, 2004 1:19 pm    Post subject: Reply with quote

I certainly agree that 2.4 *shouldn't* be any better than 2.6, but i'm just saying that I've had problems with 2.6 and I've also had problems with choppiness.

Do you have the correct drivers for your hard drive and other hardware in your kernel? Posting your config would be a good idea as tomchuk says.
_________________
AMD64 3200+, 1024MB RAM, Gentoo Linux
MacBook Core Duo, 1024MB RAM, Leopard
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
Goto page 1, 2  Next
Page 1 of 2

 
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