1850605 Members
3790 Online
104054 Solutions
New Discussion

ioctl system calls

 
SOLVED
Go to solution
Dave Burton_5
Occasional Advisor

ioctl system calls

I've got a spinning WebLogic java process on an HP server. When I look in the system calls screen, I find millions of ioctl commands consuming most of the CPU cycles.

What options do I have to work out what files these millions of ioctl calls are trying to use? Where can I get more detailed information on what ioctl is all about anyway?
2 REPLIES 2
rick jones
Honored Contributor

Re: ioctl system calls

grab a copy of tusc - there is one on ftp.cup.hp.com under dist/networking/tools/

or you can search on tusc on www.hp.com
there is no rest for the wicked yet the virtuous have no pillows
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: ioctl system calls

Tusc should be your weapon of choice for this. The bad news is that ioctl() is, by definition, driver specific. It is one of the few system calls where exactly the same arguments to the system call can produce very different behaviors. You have to tie the 1st argument (the file descriptor) to the actual device. For example, if you see that the 1st argument to ioctl is 5, you need to find the last system call (e.g. open, creat, pipe) that opened fdes 5 and then refer to the man pages that are associated with that device. You should also be aware the fdes 5 might be reused many times so simply finding an open() system called that returns 5 is not enough; you need to find the one that imediately precedes the ioctl() of interest.
If it ain't broke, I can fix that.