Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Desktop Lags under Heavy IO
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
pwaller
n00b
n00b


Joined: 03 Sep 2007
Posts: 25

PostPosted: Tue Sep 04, 2007 12:24 am    Post subject: Desktop Lags under Heavy IO Reply with quote

My Machine:

pwaller@jupiter ~ $ uname -a
Linux jupiter 2.6.22-suspend2 #2 SMP PREEMPT Mon Sep 3 00:55:46 UTC 2007 i686 Genuine Intel(R) CPU T2500 @ 2.00GHz GenuineIntel GNU/Linux

The lag I'm experiencing is most noticeable when I'm emerging or searching for files using find. Notably it affects the mouse and the keyboard. It makes typing almost impossible because it seems something is registering the key being pressed but not registering the key being released and so I get lots of a single keypress when trying to type.

I'm not really sure where to begin with trying to figure out what is causing this, can somebody recommend a starting point?

Cheers.

P.S. Can someone recommend a way of attaching my Kernel config to this post?
Back to top
View user's profile Send private message
Ehnvis
Guru
Guru


Joined: 13 Jun 2006
Posts: 305
Location: /dev/random

PostPosted: Tue Sep 04, 2007 6:04 am    Post subject: Reply with quote

Do you have DMA running on your harddrives? Check with hdparm /dev/hdX or hdparm /dev/sdX, where X is the letter of the drive.

Easiest way to attach the kernel config is to open it up in an editor or view it in some way. Copy the text and paste it to here in code tags.
_________________
HP NC 4010, Pentium-M 725 1.6GHz w/ 1Gb RAM, 60Gb Hitachi Travelstar.
Running Gentoo-2.6.21-r4 (again as 2.6.22 kernels hogs CPU), all but SD reader works fine.
Back to top
View user's profile Send private message
tuam
l33t
l33t


Joined: 04 May 2004
Posts: 755
Location: CGN, Germany

PostPosted: Tue Sep 04, 2007 11:31 am    Post subject: Reply with quote

Ehnvis wrote:
Easiest way to attach the kernel config is to open it up in an editor or view it in some way. Copy the text and paste it to here in code tags.

And please try to shorten it to reasonable size, e.g. by deleting commented (audio, network, usb) driver lines.

FF,

Daniel
_________________
Logic clearly dictates that the needs of the many outweigh the needs of the few. - Spock
The needs of the one outweigh the needs of the many. - Kirk
I refuse to let arithmetic decide questions like that. - Picard
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 4849
Location: Somewhere over Atlanta, Georgia

PostPosted: Tue Sep 04, 2007 11:38 am    Post subject: Re: Desktop Lags under Heavy IO Reply with quote

pwaller wrote:
P.S. Can someone recommend a way of attaching my Kernel config to this post?
The best way is to emerge wgetpaste. This utility will establish a temporary place (lasts 30 days) on the web for people to view your config. You can just type
Code:
wgetpaste /usr/src/linux/.config
and wgetpaste will return a URL that you can post to the forums.

- John
Back to top
View user's profile Send private message
pwaller
n00b
n00b


Joined: 03 Sep 2007
Posts: 25

PostPosted: Tue Sep 04, 2007 12:09 pm    Post subject: Reply with quote

http://rafb.net/p/3v2vGd88.html
Back to top
View user's profile Send private message
energyman76b
Advocate
Advocate


Joined: 26 Mar 2003
Posts: 2009
Location: Germany

PostPosted: Tue Sep 04, 2007 12:53 pm    Post subject: Reply with quote

try cfq as default scheduler.

I had pretty good experiences with it. Better than with AS.

also, please post your dmesg - and maybe explain some of your config choices.
Memory hotplug yes? MSR only module? wtf?

and turn of the generic ide driver, if you are using a chipset driver. Or generic will 'steal' the device - and it is slower.

Also, turn off nmi-watchdog nmi_watchdog=0 as boot parameter. There are reports that it becomes less laggy that way.

do you really need all that scsi-crap? or the stuff in block? or all that fs? btw, if you are using reiserfs, turn of the 'Preempt big kernel log' - it is faster that way. 'Voluntary Preemption' might be better too and '300Hz' instead of 1000. if you are using a laptop, you really don't want 1000Hz, because it sucks down battery juice like a thristy camel water.

Maybe clean up your config. You can't have everything installed you turned on or turned on as module.. your kernel build-time will decrease a lot!
_________________
AidanJT wrote:

...because pro-lifers (especially the catholic variety) are sick, depraved, satanic ....

...'people' - had to clean it up to not be offensive...

"The secret of politics? Make a good treaty with Russia."
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3745
Location: sleeping in the bathtub

PostPosted: Tue Sep 04, 2007 5:34 pm    Post subject: Reply with quote

energyman76b wrote:
btw, if you are using reiserfs, turn of the 'Preempt big kernel log' - it is faster that way. 'Voluntary Preemption' might be better too and '300Hz' instead of 1000. if you are using a laptop, you really don't want 1000Hz, because it sucks down battery juice like a thristy camel water.

Any source on this?

I'm not questioning you, it's just that I'm using reiserfs (v3.6) and have "Preempt the big kernel lock" enabled (which is what I presume you meant), and I'd be really interested if those two don't play nice together somehow.
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
energyman76b
Advocate
Advocate


Joined: 26 Mar 2003
Posts: 2009
Location: Germany

PostPosted: Tue Sep 04, 2007 6:07 pm    Post subject: Reply with quote

Hopeless wrote:
energyman76b wrote:
btw, if you are using reiserfs, turn of the 'Preempt big kernel log' - it is faster that way. 'Voluntary Preemption' might be better too and '300Hz' instead of 1000. if you are using a laptop, you really don't want 1000Hz, because it sucks down battery juice like a thristy camel water.

Any source on this?

I'm not questioning you, it's just that I'm using reiserfs (v3.6) and have "Preempt the big kernel lock" enabled (which is what I presume you meant), and I'd be really interested if those two don't play nice together somehow.


I have read that on lkml some month ago.. and no, I don't have the link anymore. Reiserfs uses the BKL and the other fs don't. So if reiserfs holds the BKL and it gets preempted, you loose performance.
_________________
AidanJT wrote:

...because pro-lifers (especially the catholic variety) are sick, depraved, satanic ....

...'people' - had to clean it up to not be offensive...

"The secret of politics? Make a good treaty with Russia."
Back to top
View user's profile Send private message
astor84
Tux's lil' helper
Tux's lil' helper


Joined: 06 Feb 2007
Posts: 96
Location: Dallas, Tx

PostPosted: Wed Sep 05, 2007 2:43 am    Post subject: Reply with quote

You don't happen to have an SiS chipset do you? SiS chipsets are notorious for being unable to handle a lot of simultaneous IO.
Back to top
View user's profile Send private message
pwaller
n00b
n00b


Joined: 03 Sep 2007
Posts: 25

PostPosted: Sun Sep 23, 2007 12:52 pm    Post subject: Reply with quote

No SIS chipset. Sorry for the long delay.. thanks for the advice guys.

I tried some of it out (I haven't switched to the CFQ scheduler yet.)

Here is the latest kernel config, with unused stuff stripped out (but section comments remaining)
http://pastebin.ca/707923

Here is my dmesg output:
http://pastebin.ca/707925

Here is my lspci:
http://pastebin.ca/707928

I tried turning of my scsi stuff but managed to mess everything up. Is there an easy way to maintain multiple kernel configurations installed with the same version of the kernel? I had the problem where I changed stuff and couldn't boot at all because it didn't recognise my hard-disk. I'm using genkernel.. I figure there must be an easy way to do this.

So the options seem to have helped a little, but still when emerging I lose my system almost entirely, and watching a DVD is very jerky.

Thanks in advance guys.

- Peter
Back to top
View user's profile Send private message
energyman76b
Advocate
Advocate


Joined: 26 Mar 2003
Posts: 2009
Location: Germany

PostPosted: Sun Sep 23, 2007 2:28 pm    Post subject: Reply with quote

pwaller wrote:
No SIS chipset. Sorry for the long delay.. thanks for the advice guys.

I tried some of it out (I haven't switched to the CFQ scheduler yet.)

Here is the latest kernel config, with unused stuff stripped out (but section comments remaining)
http://pastebin.ca/707923

Here is my dmesg output:
http://pastebin.ca/707925

Here is my lspci:
http://pastebin.ca/707928

I tried turning of my scsi stuff but managed to mess everything up. Is there an easy way to maintain multiple kernel configurations installed with the same version of the kernel? I had the problem where I changed stuff and couldn't boot at all because it didn't recognise my hard-disk. I'm using genkernel.. I figure there must be an easy way to do this.

So the options seem to have helped a little, but still when emerging I lose my system almost entirely, and watching a DVD is very jerky.

Thanks in advance guys.

- Peter


so you are using slow onboard graphic, your laptop (?) lacks a hpet, I can't find DMA mentioned for your disks, you have two ide drivers loaded instead of one, you are still including douzend of fs you'll never use or need and your are using framebuffer.

only include the ide driver for your chipset
turn this off:
CONFIG_IDE_GENERIC
CONFIG_BLK_DEV_GENERIC
CONFIG_BLK_DEV_VIA82CXXX
you don't have a freaking via-chipset!

turn on this:
Intel PIIXn chipsets support

KICK OUT:
RTC
# Real Time Clock
CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_HCTOSYS=y
CONFIG_RTC_HCTOSYS_DEVICE="rtc0"

# RTC interfaces
CONFIG_RTC_INTF_SYSFS=y
CONFIG_RTC_INTF_PROC=y
CONFIG_RTC_INTF_DEV=y
CONFIG_RTC_INTF_DEV_UIE_EMUL=y
# Platform RTC drivers
CONFIG_RTC_DRV_DS1553=m
CONFIG_RTC_DRV_DS1742=m
CONFIG_RTC_DRV_M48T86=m
CONFIG_RTC_DRV_V3020=m

turn it off. all of it.

all that scsi-stuff

really.
# DMA Engine support
CONFIG_DMA_ENGINE=y
away!


# Miscellaneous filesystems
CONFIG_SQUASHFS=y
CONFIG_SQUASHFS_EMBEDDED=y
CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE=3

# Network File Systems
CONFIG_NFS_FS=m
CONFIG_NFS_V3=y
CONFIG_NFSD=m
CONFIG_NFSD_V3=y
CONFIG_NFSD_TCP=y
CONFIG_LOCKD=m
CONFIG_LOCKD_V4=y
CONFIG_EXPORTFS=m
CONFIG_NFS_COMMON=y
CONFIG_SUNRPC=m
CONFIG_CIFS=m
CONFIG_CIFS_XATTR=y
CONFIG_CIFS_POSIX=y

WAAAAAAAH!

almost all kernel-hacking options! Debug = SLOW

And use cfg instead of antipicatory as IO-scheduler.

Your system is jerky, because you load the wrong ide drivers, you slowed it additionally down with debug options you'll never need, increased the kernel size (bigger size = slow) with garbage and you are using a io-scheduler that is HUGE and not really fast.

Build a new kernel, report back if your problem persists.
_________________
AidanJT wrote:

...because pro-lifers (especially the catholic variety) are sick, depraved, satanic ....

...'people' - had to clean it up to not be offensive...

"The secret of politics? Make a good treaty with Russia."
Back to top
View user's profile Send private message
pwaller
n00b
n00b


Joined: 03 Sep 2007
Posts: 25

PostPosted: Sun Sep 23, 2007 2:31 pm    Post subject: Reply with quote

Cheers energyman. I will try this out over the next couple of hours and report back :)

- Pete
Back to top
View user's profile Send private message
energyman76b
Advocate
Advocate


Joined: 26 Mar 2003
Posts: 2009
Location: Germany

PostPosted: Sun Sep 23, 2007 2:44 pm    Post subject: Reply with quote

and excuse me please, if I sound harsh ;)
_________________
AidanJT wrote:

...because pro-lifers (especially the catholic variety) are sick, depraved, satanic ....

...'people' - had to clean it up to not be offensive...

"The secret of politics? Make a good treaty with Russia."
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3745
Location: sleeping in the bathtub

PostPosted: Sun Sep 23, 2007 2:48 pm    Post subject: Reply with quote

energyman76b wrote:
and excuse me please, if I sound harsh ;)

You always sound harsh.

:P
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
pwaller
n00b
n00b


Joined: 03 Sep 2007
Posts: 25

PostPosted: Sun Sep 23, 2007 2:50 pm    Post subject: Reply with quote

s'ok, your help outweighs your attitude. ;)

I have to say though, I am worried about turning of the SCSI stuff. I think it caused me problems last time. And figuring out exactly what IDE driver to turn off is a pain, too.

Is there any way to keep my old, known-working kernel config around whilst trying out the new one?
Back to top
View user's profile Send private message
energyman76b
Advocate
Advocate


Joined: 26 Mar 2003
Posts: 2009
Location: Germany

PostPosted: Sun Sep 23, 2007 2:57 pm    Post subject: Reply with quote

pwaller wrote:
s'ok, your help outweighs your attitude. ;)

I have to say though, I am worried about turning of the SCSI stuff. I think it caused me problems last time. And figuring out exactly what IDE driver to turn off is a pain, too.

Is there any way to keep my old, known-working kernel config around whilst trying out the new one?


just copy .config somewhere else. Also, I told you exactly which ide driver to turn off and on.

About the scsi stuff: it does not hurt keeping the scsi-disk, scsi-cd, scsi-generic and multi-lun support (the last one is needed for cardreaders). Everything else should be turned of.

Hopeless wrote:
energyman76b wrote:
and excuse me please, if I sound harsh ;)

You always sound harsh.

:P


look at my avatar. See the annoyed look? That is how I feel 24h a day!
_________________
AidanJT wrote:

...because pro-lifers (especially the catholic variety) are sick, depraved, satanic ....

...'people' - had to clean it up to not be offensive...

"The secret of politics? Make a good treaty with Russia."
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3745
Location: sleeping in the bathtub

PostPosted: Sun Sep 23, 2007 3:02 pm    Post subject: Reply with quote

pwaller wrote:
Is there any way to keep my old, known-working kernel config around whilst trying out the new one?

I think that's what the CONFIG_LOCALVERSION option is there for.

You should definitley disable "CONFIG_IDE_GENERIC" if the VIA82CXXX is the right driver for your board.

Do you have dri, dbe and xv/xvmc working in xorg?
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
energyman76b
Advocate
Advocate


Joined: 26 Mar 2003
Posts: 2009
Location: Germany

PostPosted: Sun Sep 23, 2007 3:04 pm    Post subject: Reply with quote

Hopeless wrote:
pwaller wrote:
Is there any way to keep my old, known-working kernel config around whilst trying out the new one?

I think that's what the CONFIG_LOCALVERSION option is there for.

You should definitley disable "CONFIG_IDE_GENERIC" if the VIA82CXXX is the right driver for your board.

Do you have dri, dbe and xv/xvmc working in xorg?


he does not have via. He has intel. He needs the intel driver. Nothing else.
_________________
AidanJT wrote:

...because pro-lifers (especially the catholic variety) are sick, depraved, satanic ....

...'people' - had to clean it up to not be offensive...

"The secret of politics? Make a good treaty with Russia."
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3745
Location: sleeping in the bathtub

PostPosted: Sun Sep 23, 2007 3:05 pm    Post subject: Reply with quote

energyman76b wrote:
Hopeless wrote:
energyman76b wrote:
and excuse me please, if I sound harsh ;)

You always sound harsh.

:P


look at my avatar. See the annoyed look? That is how I feel 24h a day!

You don't work in tech support, do you?
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3745
Location: sleeping in the bathtub

PostPosted: Sun Sep 23, 2007 3:08 pm    Post subject: Reply with quote

energyman76b wrote:
Hopeless wrote:
A load of nonsense


he does not have via. He has intel. He needs the intel driver. Nothing else.

Ah, I only looked at the kernel config.

:oops:

My bad.
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
energyman76b
Advocate
Advocate


Joined: 26 Mar 2003
Posts: 2009
Location: Germany

PostPosted: Sun Sep 23, 2007 3:11 pm    Post subject: Reply with quote

Hopeless wrote:
energyman76b wrote:
Hopeless wrote:
energyman76b wrote:
and excuse me please, if I sound harsh ;)

You always sound harsh.

:P


look at my avatar. See the annoyed look? That is how I feel 24h a day!

You don't work in tech support, do you?


almost. I play tech support for a bunch of net-addicted students who don't read the emails in their universities account nor the letters from the landlord (no rent, no net...).
_________________
AidanJT wrote:

...because pro-lifers (especially the catholic variety) are sick, depraved, satanic ....

...'people' - had to clean it up to not be offensive...

"The secret of politics? Make a good treaty with Russia."
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3745
Location: sleeping in the bathtub

PostPosted: Sun Sep 23, 2007 3:13 pm    Post subject: Reply with quote

energyman76b wrote:
Hopeless wrote:
You don't work in tech support, do you?


almost. I play tech support for a bunch of net-addicted students who don't read the emails in their universities account nor the letters from the landlord (no rent, no net...).

Ouch.

I feel your pain.
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
pwaller
n00b
n00b


Joined: 03 Sep 2007
Posts: 25

PostPosted: Sun Sep 23, 2007 3:49 pm    Post subject: Reply with quote

Latest Kernel Config:
http://pastebin.ca/708088

Hey, I seem to have some improvement, but DMA is disabled.

I'm feeling really dumb, I can't figure out what I need to do to turn it on. I've grepped for DMA in the config, but to me it looks like all of the relevant options are on..?

I really appreciate the help guys.
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3745
Location: sleeping in the bathtub

PostPosted: Sun Sep 23, 2007 3:55 pm    Post subject: Reply with quote

What does `hdparm -d 1 /dev/hda` actually return, on both the command line and in dmesg?

Oh, energyman76b, I read up on the reiserfs and "Preempt the big kernel lock" thing, and apparently it's only the journalling code which makes use of it, however there isn't much else in the kernel which does use the kernel lock so I've disabled that preemption option.
Thanks for the tip off.
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
energyman76b
Advocate
Advocate


Joined: 26 Mar 2003
Posts: 2009
Location: Germany

PostPosted: Sun Sep 23, 2007 3:57 pm    Post subject: Reply with quote

dmesg would be helpfull. And you should be able to turn on dma with hdparm (hdparm -d1 -u1 -c1 /dev/hda & the same for your cd drive like hdc..)
_________________
AidanJT wrote:

...because pro-lifers (especially the catholic variety) are sick, depraved, satanic ....

...'people' - had to clean it up to not be offensive...

"The secret of politics? Make a good treaty with Russia."
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
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