LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 10-15-2013, 07:44 AM   #1
Eosinor
LQ Newbie
 
Registered: Oct 2013
Location: France
Posts: 3

Rep: Reputation: Disabled
Question kernel has better response time under stress


Hi all,
I have and stange behavior that I fail to understand:
For performance measurement purpose, I'm using the 'old' parrallel port interface to generate IRQs on a debian kernel 3.2.0-4-amd64 (I am using an externel signal generator connected to tha ACK pin).

I wrote my own kernel module (top half only) to handle the interrupt and send an external signal back to the parrallel port and display both signals on a oscilloscope so I can measure the kernel response time.
Everything works as expected and I can see an average 70 µs of time response with some 'burst' of 20µs . I'm running on a "Intel(R) Core(TM) i3-3240 CPU @ 3.40GHz".

Now, the "unexplained" part.
If I load the CPU, memory and I/O using the "stress" program, I expected the average time to be worst , but the opposit happens: my average response time drops to 20µs.
I tried on 3 differents kernel:
vanilla, PREEMT-RT anf vanilla with NO_HZ option set to false.
Can someone explain the magic of this ?
 
Old 10-15-2013, 08:22 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Are you by any chance using the ondemand governor for powersaving? If so, try to set that to performance (CPU always runs with maximum clockspeed) and see if that fixes that behavior.
 
1 members found this post helpful.
Old 10-15-2013, 09:35 AM   #3
Eosinor
LQ Newbie
 
Registered: Oct 2013
Location: France
Posts: 3

Original Poster
Rep: Reputation: Disabled
It's a Bingo!
I wasn't aware of this "governor" thing.
I can see the CPU frequency changing from 1.6Ghz of 3.4 Ghz with "ondemand" governor.
Thanks for your fast answer.
 
Old 11-05-2013, 10:00 AM   #4
Eosinor
LQ Newbie
 
Registered: Oct 2013
Location: France
Posts: 3

Original Poster
Rep: Reputation: Disabled
oops

well I concluded a little bit to fast.
The governor tweak is not the answer. My system has still better performance when under stress.
Any other explaination ?

(is it possible to unmark the 'solved' attribute of my question ?)
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Im am running a stress autocorrelation function,to calculate stress correlation funct lehloks Programming 4 07-08-2013 05:59 AM
[SOLVED] response time ridoy Programming 2 03-21-2011 02:15 PM
response time tommytomato Ubuntu 3 07-08-2007 05:49 AM
Slowdown in pc response time dregoma Linux - Newbie 1 02-11-2004 01:19 PM
Keyboard response time niyaah Linux - Newbie 0 10-13-2002 09:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 09:43 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration