LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-25-2006, 10:40 PM   #1
FnordPerfect
Member
 
Registered: Dec 2006
Location: Germany
Distribution: Kubuntu (Feisty Fawn), Debian (SID)
Posts: 127

Rep: Reputation: 15
System experiencing short "hiccups" / hangers


Hi there,

(I just declared myself Eternal Newbie, so I'll go ahead and post my question as if I had not been using Linux for the past 5 yrs...)

Well, as the topic says, there are occasional hiccups in some apps (games..).
For example these:
* sdljump
* E-UAE (enhanced Amiga emulator using SDL)
* dosbox

Every x seconds the app hangs, but only the graphical output. The app continues playing sound and receiving input, and then suddenly the display "catches up"..!

My guess would be, that it is either a threading issue, something that has to do with scheduling on kernel-level, or perhaps an ALSA buffer issue -- who knows? I just don't know where to start investigating...

It might be completely unrelated, but Firefox (or rather Swiftfox 2.0 which I use) also shows a similar behaviour:
My input (may it be via mousewheel or keyboard) does not trigger actions immediatly, but it *is received* and the window scrolls / the textbox fills
a few milliseconds later, according to my input...

This is my setup:
* Debian SID

* customized Kernel 2.6.19-ck1 (yep, I'm using the Con Kolivas patchset -- perhaps this is the "root of all evil"? ;-) dunno!)

* I am running various daemons and background processes, but the system load is normally at 1-3 %

Hardware:
* Athlon XP 2500+, 1GB RAM
* Geforce TI4200 (using the proprietary Nvidia drivers 1.0-9631)
* SB Live! using ALSA (OSS emulation layer turned off, I'm using no artsd or similar)

Please help!

Fabian (FnordPerfect)
 
Old 12-26-2006, 04:59 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,475

Rep: Reputation: 87
Hi

I'm using FC6 with the 2.6.18.1 kernel. I had similar problems under load with a the kernel compiled for pre-emptiveness. I had this set, and then I had problems like yours (this is the relevant lines in the kernel source's .conf file):

# CONFIG_PREEMPT_NONE is not set
# CONFIG_PREEMPT_VOLUNTARY is not set
CONFIG_PREEMPT=y

This meant (I guess - bit of a newbie myself) that the kernel was running a "forced pre-emptive" mode as regards scheduling. I changed this to

# CONFIG_PREEMPT_NONE is not set
CONFIG_PREEMPT_VOLUNTARY=y
# CONFIG_PREEMPT is not set

(i. e. I compiled a volunatrily pre-emptive kernel) and my hickups and stutterings went away, under load or not.

Maybe you can try doing this as well? Maybe it will solve your stuttering problems?

Regards
 
Old 12-29-2006, 07:34 AM   #3
FnordPerfect
Member
 
Registered: Dec 2006
Location: Germany
Distribution: Kubuntu (Feisty Fawn), Debian (SID)
Posts: 127

Original Poster
Rep: Reputation: 15
Hello, thank you very much for your detailed answer!

I checked, but alas my kernel was already compiled for voluntary pre-emption.

So I thought I give it a shot and tried what happens with forced pre-emption, which I am trying atm, and yes, it made it even worse. The next thing I'll try is to patch the kernel with the -ck2 patchset to see if things change. Then perhaps try a vanilla-Debian kernel.

It's not in that many applications, anyway! But sdljump this stuttering is extremly noticeable. Maybe that silly game is just not a reliable benchmark, and the most effective cure for my problem is stop playing it ;-)

Fabian (fnordperfect)
 
Old 12-31-2006, 03:44 AM   #4
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,475

Rep: Reputation: 87
Ok, have you tried a kernel with NO pre-emption? Not voluntary OR forced?
 
Old 01-09-2007, 11:08 AM   #5
FnordPerfect
Member
 
Registered: Dec 2006
Location: Germany
Distribution: Kubuntu (Feisty Fawn), Debian (SID)
Posts: 127

Original Poster
Rep: Reputation: 15
Yes, I recompiled my kernel three times, but the problem never went away completely.

I am sure I just looked at it from the wrong side:
When I tried sdljump at a friend's computer, it experienced the very same problem. He then fiddled around with the settings of that game, and it went away.

E-UAE and Firefox show a similar behaviour superficially, but it is probably a completely differend problem under the hood.

Thanks for your help, anyway.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting "Short read in buffer_copy" error with "dpkg" stalefries Linux - Software 6 03-24-2010 03:19 PM
usb hdd "device not ready" on write after short idle time human_blip Linux - Hardware 7 10-13-2006 02:31 AM
..."short read while reading block 516" mohapi Fedora 7 10-22-2004 01:37 PM
"User" & "System" CPU load difference JJX Linux - General 3 06-06-2004 01:42 AM
"X-MS" cant open because "x-Multimedia System" cant access files at "smb&qu ponchy5 Linux - Networking 0 03-29-2004 11:18 PM


All times are GMT -5. The time now is 06:53 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration