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 11-23-2015, 08:15 AM   #1
Kippers
LQ Newbie
 
Registered: Sep 2015
Posts: 17

Rep: Reputation: Disabled
Measure CPU-performance while frequent interrupts.


I have a simple kernel interrupt that is triggered by a GPIO-input. The IRQ just exits after being called. When I turn the frequency of the interrupts up to somewhere around 10-20 kHz, the system (BeagleBone Black from PuTTY) becomes unresponsive. I measure the CPU-load using top, mpstat and iostat while turning the frequency up, but there are no significant change in any of the metrics.

So the processor CPU gets loaded, but I can't measure it!

How is top making its measurement? How come the very frequent interrupt isn't visible?

How can I measure the impact the interrupt has on the overall performance of the system?

EDIT:
Even "mpstat -I SUM" which is suppose to "Report interrupts statistics", doesn't change its metrics when changing the interrupt frequency significantly. The source code of the kernel module that im running, can be found here: Derek Molloy - See listing 4

My interrupt IRQ looks like this:
Code:
static irq_handler_t ebbgpio_irq_handler(unsigned int irq, void *dev_id, struct pt_regs *regs){
   return (irq_handler_t) IRQ_HANDLED;  // Announce that the IRQ has been handled correctly
}
2. EDIT
The intr/s value of mpstat does infact scale with the interrupt frequency. It shows 860.90 at an interrupt frequency on 1 Hz, and 1959.68 at an interrupt frequency on 150kHz.
By setting the CPU-frequency governor to "performance", and setting the frequency to static 1GHz, I was able to get the interrupt frequency up to 150kHz, before the processor crashed..

Last edited by Kippers; 11-23-2015 at 09:31 AM.
 
  


Reply

Tags
interrupt, kernel, performance



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
LXer: Measure tomcat Performance with ab LXer Syndicated Linux News 0 08-15-2011 09:10 AM
measure apache website performance noir911 Linux - Server 1 09-12-2008 02:01 AM
How to measure/monitor network performance tlemons Linux - Networking 5 10-18-2006 04:18 PM
measure program performance cranium2004 Programming 1 05-04-2005 10:49 AM
Measure disk performance smokinghound Linux - Hardware 1 07-10-2003 09:58 AM

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

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

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