LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-25-2011, 10:31 AM   #1
junmuz
LQ Newbie
 
Registered: Feb 2010
Posts: 9

Rep: Reputation: 0
change default jiffy settings


Hello,

I have developed application in which I have used timer signal interrupts. The problem that I am getting is that these interrupts can occur up to minimum 4ms due to default jiffy settings. Can I lower this time in the order of us?

How can that be done?
 
Old 06-26-2011, 03:04 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
On recent kernels in major distributions with recent hardware, you should see about 240us interrupt frequency (or better). Check here for information.
 
Old 08-26-2011, 12:10 PM   #3
stanunruh
LQ Newbie
 
Registered: Jun 2011
Posts: 11

Rep: Reputation: Disabled
My kernel is version 2.6.23, and I am getting variable interrupt frequencies. The settings when I go to make menuconfig are 250 Hz, which is what I want. But if I run the code found at http://www.advenage.com/topics/linux...-frequency.php (referenced above) it tells me I have 126 Hz. My application, which is interrupt driven, runs anywhere from 125 to 250. There are a number of values I see, mainly 126, 135, 195, 223, and 250. When it runs at 250 it is very stable, but at the other values it always has a range of +/- about 5.

I have run my application on several other Linux operating systems, and it always runs rock steady at whatever the kernel is configured for. I have modified my include files to change HZ to 250 and am trying to recompile the kernel, but am having problems doing that (see another post I started today).

Does anyone know why the timer signal interrupts vary so much? The fact that it runs at 250 at times makes me think the settings in the kernel are probably set correctly. Has anyone experianced this variable phenomonen?
 
Old 08-26-2011, 04:54 PM   #4
markseger
Member
 
Registered: Jul 2003
Posts: 244

Rep: Reputation: 26
all I can say is I use perl::HiRes::Timer in collect to time things to usec and works just fine as far as I know across ALL platforms/distros since the 2.4 kernel days. Rock solid! Admittedly this is perl, but it's relying on underlying kernel services. Sounds to me like a bug in the timer you're using.
-mark
 
Old 08-28-2011, 03:39 PM   #5
stanunruh
LQ Newbie
 
Registered: Jun 2011
Posts: 11

Rep: Reputation: Disabled
Mark, thanks for the advice. I understand I can use perl to sleep for an accurate period of time, or the return a very accurate time to the micro second, but how would I use it as an interval interrupt? I need to interrupt graphics and other file maintenance routines to service a robot every 4 milli seconds. Can you see perl working for this application? Would I need to multi-thread?
 
  


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
What config file do you change to change default run level McPriMa Linux - Newbie 2 08-05-2009 04:45 PM
How do I change the default settings for the guest account? win32sux Ubuntu 5 12-18-2008 05:13 PM
change grub boot order, all instructions say change default, but I don't see default mhg Linux - Newbie 5 11-09-2008 10:01 AM
How to reset monitor settings to default autodetected settings in openSUSE? chengas123 Linux - General 2 09-17-2008 11:24 AM
Where is the definition of Jiffy? Reekkor Linux - General 2 04-26-2007 07:14 AM

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

All times are GMT -5. The time now is 10:37 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