Date: Wed, 17 Feb 2010 18:09:04 +0000 From: Andrew Brampton <brampton+freebsd@gmail.com> To: freebsd-hackers <freebsd-hackers@freebsd.org> Subject: Per core, per device interrupt counts Message-ID: <d41814901002171009l16bd40e7j1970d01bc8f44fd7@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
After reading though the kernel source I realise what I want isn't implemented at the moment but I wanted to discuss if this feature would be an useful addition. Basically I want to see counts of how many interrupts for a particular interrupt have fired on each core. Linux has provided this kind of information for a while and I've found it quite useful. I would like this information when I am pinning particular interrupts to one (or more cores). This is useful when I'm tweaking a system with, for example, 10Gig network cards which have multiple queues (thus multiple IRQs). Having a look in the kernel I see that the count is kept in the is_count field of the intsrc struct. This field seems to be backed by the global intrcnt array. Could this be modified to perhaps use the new PCPU macros, so there is a different count for each core? If I was given a few pointers I might find time to implement this myself. thanks Andrew
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d41814901002171009l16bd40e7j1970d01bc8f44fd7>