HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

cpu busy on syscalls fail

 
albino_1
Occasional Advisor

cpu busy on syscalls fail

Hi,
I'm using php-cgi on HP-UX 11.31 U 9000/800

My project is a porting from linux machine.

I have seen that on HP-UX the php-cgi get a lot of CPU than Linux.

I used tusc to understand what happen and I have seen a lot of errors message on syscalls.

Could you help me to understand why?


#tusc -z 8939

readlink("/usr", 0x70983340, 1024) ........................................................ ERR#22 EINVAL
readlink("/usr/montella", 0x70983340, 1024) ............................................... ERR#22 EINVAL
readlink("/usr/montella/_ZICLIGHT3.4", 0x70983340, 1024) .................................. ERR#22 EINVAL
readlink("/usr/montella/_ZICLIGHT3.4/htdocs", 0x70983340, 1024) ........................... ERR#22 EINVAL
readlink("/usr/montella/_ZICLIGHT3.4/htdocs/ZIC1850TSS320", 0x70983340, 1024) ............. ERR#22 EINVAL
readlink("/usr/montella/_ZICLIGHT3.4/htdocs/ZIC1850TSS320/app.php", 0x70983340, 1024) ..... ERR#22 EINVAL
readlink("/usr", 0x70982f40, 1024) ........................................................ ERR#22 EINVAL
readlink("/usr/montella", 0x70982f40, 1024) ............................................... ERR#22 EINVAL
readlink("/usr/montella/_ZICLIGHT3.4", 0x70982f40, 1024) .................................. ERR#22 EINVAL
readlink("/usr/montella/_ZICLIGHT3.4/scripts", 0x70982f40, 1024) .......................... ERR#22 EINVAL
readlink("/usr/montella/_ZICLIGHT3.4/htdocs", 0x70982f40, 1024) ........................... ERR#22 EINVAL
readlink("/usr/montella/_ZICLIGHT3.4/htdocs/ZIC1850TSS320", 0x70982f40, 1024) ............. ERR#22 EINVAL
readlink("/usr/montella/_ZICLIGHT3.4/htdocs/ZIC1850TSS320/app.php", 0x70982f40, 1024) ..... ERR#22 EINVAL
readlink("/usr", 0x70983000, 1024) ........................................................ ERR#22 EINVAL
readlink("/usr/montella", 0x70983000, 1024) ............................................... ERR#22 EINVAL
readlink("/usr/montella/_ZICLIGHT3.4", 0x70983000, 1024) .................................. ERR#22 EINVAL
readlink("/usr/montella/_ZICLIGHT3.4/scripts", 0x70983000, 1024) .......................... ERR#22 EINVAL
readlink("/usr/montella/_ZICLIGHT3.4/htdocs", 0x70983000, 1024) ........................... ERR#22 EINVAL
readlink("/usr/montella/_ZICLIGHT3.4/htdocs/ZIC1850TSS320", 0x70983000, 1024) ............. ERR#22 EINVAL
ioctl(36, TCGETA, 0x70982738) ............................................................. ERR#25 ENOTTY
ioctl(36, TCGETA, 0x70983bb8) ............................................................. ERR#25 ENOTTY
readlink("/usr", 0x70988100, 1024) ........................................................ ERR#22 EINVAL
readlink("/usr/montella", 0x70988100, 1024) ............................................... ERR#22 EINVAL
readlink("/usr/montella/_ZICLIGHT3.4", 0x70988100, 1024) .................................. ERR#22 EINVAL
readlink("/usr/montella/_ZICLIGHT3.4/htdocs", 0x70988100, 1024) ........................... ERR#22 EINVAL
readlink("/usr/montella/_ZICLIGHT3.4/htdocs/ZIC1850TSS320", 0x70988100, 1024) ............. ERR#22 EINVAL
readlink("/usr/montella/_ZICLIGHT3.4/htdocs/ZIC1850TSS320/mapping.php", 0x70988100, 1024) . ERR#22 EINVAL
readlink("/usr", 0x70988100, 1024) ........................................................ ERR#22 EINVAL
readlink("/usr/montella", 0x70988100, 1024) ............................................... ERR#22 EINVAL
readlink("/usr/montella/_ZICLIGHT3.4", 0x70988100, 1024) .................................. ERR#22 EINVAL
readlink("/usr/montella/_ZICLIGHT3.4/htdocs", 0x70988100, 1024) ........................... ERR#22 EINVAL
readlink("/usr/montella/_ZICLIGHT3.4/htdocs/ZIC1850TSS320", 0x70988100, 1024) ............. ERR#22 EINVAL
readlink("/usr/montella/_ZICLIGHT3.4/htdocs/ZIC1850TSS320/core", 0x70988100, 1024) ........ ERR#22 EINVAL
readlink("/usr/montella/_ZICLIGHT3.4/htdocs/ZIC1850TSS320/core/zcsessionpatch.php", 0x70988100, 1024) ERR#22 EINVAL
...
...
ioctl(36, TCGETA, 0x709933b8) ............................................................. ERR#25 ENOTTY
ioctl(36, TCGETA, 0x709933b8) ............................................................. ERR#25 ENOTTY
ioctl(36, TCGETA, 0x709933b8) ............................................................. ERR#25 ENOTTY
ioctl(36, TCGETA, 0x70993df8) ............................................................. ERR#25 ENOTTY
ioctl(36, TCGETA, 0x70993df8) ............................................................. ERR#25 ENOTTY
ioctl(36, TCGETA, 0x70993df8) ............................................................. ERR#25 ENOTTY
ioctl(36, TCGETA, 0x70993df8) ............................................................. ERR#25 ENOTTY
ioctl(36, TCGETA, 0x70993378) ............................................................. ERR#25 ENOTTY
ioctl(36, TCGETA, 0x709938b8) ............................................................. ERR#25 ENOTTY
ioctl(36, TCGETA, 0x709938b8) ............................................................. ERR#25 ENOTTY
ioctl(36, TCGETA, 0x709938b8) ............................................................. ERR#25 ENOTTY
ioctl(36, TCGETA, 0x709938b8) ............................................................. ERR#25 ENOTTY
ioctl(36, TCGETA, 0x70992e38) ............................................................. ERR#25 ENOTTY
ioctl(36, TCGETA, 0x709938b8) ............................................................. ERR#25 ENOTTY
ioctl(36, TCGETA, 0x709938b8) ............................................................. ERR#25 ENOTTY
ioctl(36, TCGETA, 0x709938b8) ............................................................. ERR#25 ENOTTY
ioctl(36, TCGETA, 0x709938b8) ............................................................. ERR#25 ENOTTY
ioctl(36, TCGETA, 0x70992e38) ............................................................. ERR#25 ENOTTY
ioctl(36, TCGETA, 0x70982e38) ............................................................. ERR#25 ENOTTY
ioctl(36, TCGETA, 0x70982fb8) ............................................................. ERR#25 ENOTTY
ioctl(36, TCGETA, 0x70982df8) ............................................................. ERR#25 ENOTTY
shutdown(22, SHUT_WR) ..................................................................... ERR#22 EINVAL

thx
Al



4 REPLIES
James R. Ferguson
Acclaimed Contributor

Re: cpu busy on syscalls fail

Hi:

By example, the 'errno' value (e.g. #22) and the corresponding mnemonic name ('EINVAL') together with the system call ('readlink()') are given. If you look in the manpages for the system call in question, you will see that EINVAL for readlink() means that the path argument names a file that is not a symbolic link.

Regards!

...JRF...

Re: cpu busy on syscalls fail

>ioctl(36, TCGETA, 0x709933b8) . ERR#25 ENOTTY

These are also normal. Every time you use stdio to open a file, it assumes it may be a TTY and goes that ioctl.
albino_1
Occasional Advisor

Re: cpu busy on syscalls fail

so nothing is strange in this tusc trace that can help me to understand Cpu overload?

by the way , thx for very fast answer :))

Al

Re: cpu busy on syscalls fail

>so nothing is strange in this tusc trace that can help me to understand CPU overload?

Where are you spending your CPU time? In the user code or in the OS? What does time(1) show?

If you were on Integrity, you could use caliper to find where you are spending your time.
You could also purchase glance.