Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Desktop Lags under Heavy IO

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
49 posts
  • 1
  • 2
  • Next
Author
Message
pwaller
n00b
n00b
Posts: 32
Joined: Mon Sep 03, 2007 2:49 pm

Desktop Lags under Heavy IO

  • Quote

Post by pwaller » Tue Sep 04, 2007 12:24 am

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?
Top
Ehnvis
Guru
Guru
Posts: 305
Joined: Tue Jun 13, 2006 9:05 am
Location: /dev/random

  • Quote

Post by Ehnvis » Tue Sep 04, 2007 6:04 am

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.
Top
tuam
l33t
l33t
User avatar
Posts: 765
Joined: Tue May 04, 2004 9:09 am
Location: CGN, Germany

  • Quote

Post by tuam » Tue Sep 04, 2007 11:31 am

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
Top
John R. Graham
Administrator
Administrator
User avatar
Posts: 10898
Joined: Tue Mar 08, 2005 3:39 pm
Location: Somewhere over Winder, Georgia, USA

Re: Desktop Lags under Heavy IO

  • Quote

Post by John R. Graham » Tue Sep 04, 2007 11:38 am

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: Select all

wgetpaste /usr/src/linux/.config
and wgetpaste will return a URL that you can post to the forums.

- John
Top
pwaller
n00b
n00b
Posts: 32
Joined: Mon Sep 03, 2007 2:49 pm

  • Quote

Post by pwaller » Tue Sep 04, 2007 12:09 pm

http://rafb.net/p/3v2vGd88.html
Top
energyman76b
Advocate
Advocate
User avatar
Posts: 2048
Joined: Wed Mar 26, 2003 11:31 am
Location: Germany

  • Quote

Post by energyman76b » Tue Sep 04, 2007 12:53 pm

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!
Study finds stunning lack of racial, gender, and economic diversity among middle-class white males

I identify as a dirty penismensch.
Top
Sadako
Advocate
Advocate
User avatar
Posts: 3792
Joined: Thu Aug 05, 2004 5:50 pm
Location: sleeping in the bathtub
Contact:
Contact Sadako
Website

  • Quote

Post by Sadako » Tue Sep 04, 2007 5:34 pm

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"
Top
energyman76b
Advocate
Advocate
User avatar
Posts: 2048
Joined: Wed Mar 26, 2003 11:31 am
Location: Germany

  • Quote

Post by energyman76b » Tue Sep 04, 2007 6:07 pm

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.
Study finds stunning lack of racial, gender, and economic diversity among middle-class white males

I identify as a dirty penismensch.
Top
astor84
Tux's lil' helper
Tux's lil' helper
Posts: 96
Joined: Tue Feb 06, 2007 4:19 am
Location: Dallas, Tx

  • Quote

Post by astor84 » Wed Sep 05, 2007 2:43 am

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.
Top
pwaller
n00b
n00b
Posts: 32
Joined: Mon Sep 03, 2007 2:49 pm

  • Quote

Post by pwaller » Sun Sep 23, 2007 12:52 pm

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
Top
energyman76b
Advocate
Advocate
User avatar
Posts: 2048
Joined: Wed Mar 26, 2003 11:31 am
Location: Germany

  • Quote

Post by energyman76b » Sun Sep 23, 2007 2:28 pm

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.
Study finds stunning lack of racial, gender, and economic diversity among middle-class white males

I identify as a dirty penismensch.
Top
pwaller
n00b
n00b
Posts: 32
Joined: Mon Sep 03, 2007 2:49 pm

  • Quote

Post by pwaller » Sun Sep 23, 2007 2:31 pm

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

- Pete
Top
energyman76b
Advocate
Advocate
User avatar
Posts: 2048
Joined: Wed Mar 26, 2003 11:31 am
Location: Germany

  • Quote

Post by energyman76b » Sun Sep 23, 2007 2:44 pm

and excuse me please, if I sound harsh ;)
Study finds stunning lack of racial, gender, and economic diversity among middle-class white males

I identify as a dirty penismensch.
Top
Sadako
Advocate
Advocate
User avatar
Posts: 3792
Joined: Thu Aug 05, 2004 5:50 pm
Location: sleeping in the bathtub
Contact:
Contact Sadako
Website

  • Quote

Post by Sadako » Sun Sep 23, 2007 2:48 pm

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

:P
"You have to invite me in"
Top
pwaller
n00b
n00b
Posts: 32
Joined: Mon Sep 03, 2007 2:49 pm

  • Quote

Post by pwaller » Sun Sep 23, 2007 2:50 pm

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?
Top
energyman76b
Advocate
Advocate
User avatar
Posts: 2048
Joined: Wed Mar 26, 2003 11:31 am
Location: Germany

  • Quote

Post by energyman76b » Sun Sep 23, 2007 2:57 pm

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!
Study finds stunning lack of racial, gender, and economic diversity among middle-class white males

I identify as a dirty penismensch.
Top
Sadako
Advocate
Advocate
User avatar
Posts: 3792
Joined: Thu Aug 05, 2004 5:50 pm
Location: sleeping in the bathtub
Contact:
Contact Sadako
Website

  • Quote

Post by Sadako » Sun Sep 23, 2007 3:02 pm

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"
Top
energyman76b
Advocate
Advocate
User avatar
Posts: 2048
Joined: Wed Mar 26, 2003 11:31 am
Location: Germany

  • Quote

Post by energyman76b » Sun Sep 23, 2007 3:04 pm

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.
Study finds stunning lack of racial, gender, and economic diversity among middle-class white males

I identify as a dirty penismensch.
Top
Sadako
Advocate
Advocate
User avatar
Posts: 3792
Joined: Thu Aug 05, 2004 5:50 pm
Location: sleeping in the bathtub
Contact:
Contact Sadako
Website

  • Quote

Post by Sadako » Sun Sep 23, 2007 3:05 pm

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"
Top
Sadako
Advocate
Advocate
User avatar
Posts: 3792
Joined: Thu Aug 05, 2004 5:50 pm
Location: sleeping in the bathtub
Contact:
Contact Sadako
Website

  • Quote

Post by Sadako » Sun Sep 23, 2007 3:08 pm

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"
Top
energyman76b
Advocate
Advocate
User avatar
Posts: 2048
Joined: Wed Mar 26, 2003 11:31 am
Location: Germany

  • Quote

Post by energyman76b » Sun Sep 23, 2007 3:11 pm

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...).
Study finds stunning lack of racial, gender, and economic diversity among middle-class white males

I identify as a dirty penismensch.
Top
Sadako
Advocate
Advocate
User avatar
Posts: 3792
Joined: Thu Aug 05, 2004 5:50 pm
Location: sleeping in the bathtub
Contact:
Contact Sadako
Website

  • Quote

Post by Sadako » Sun Sep 23, 2007 3:13 pm

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"
Top
pwaller
n00b
n00b
Posts: 32
Joined: Mon Sep 03, 2007 2:49 pm

  • Quote

Post by pwaller » Sun Sep 23, 2007 3:49 pm

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.
Top
Sadako
Advocate
Advocate
User avatar
Posts: 3792
Joined: Thu Aug 05, 2004 5:50 pm
Location: sleeping in the bathtub
Contact:
Contact Sadako
Website

  • Quote

Post by Sadako » Sun Sep 23, 2007 3:55 pm

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"
Top
energyman76b
Advocate
Advocate
User avatar
Posts: 2048
Joined: Wed Mar 26, 2003 11:31 am
Location: Germany

  • Quote

Post by energyman76b » Sun Sep 23, 2007 3:57 pm

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..)
Study finds stunning lack of racial, gender, and economic diversity among middle-class white males

I identify as a dirty penismensch.
Top
Post Reply

49 posts
  • 1
  • 2
  • Next

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic