- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HP-UX Itanium
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2010 04:55 AM
тАО01-22-2010 04:55 AM
I have a question on Traps. One of my applications uses lot of system cpu time. From Glance I can see that there are lot of traps the application generates. How can I find out which part of the code is causing the traps ? Is there any tool ? I used tusc, but it doesn't give the trap information. Any idea ?
Thanks,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2010 06:11 AM
тАО01-22-2010 06:11 AM
SolutionMight want to read over http://h21007.www2.hp.com/portal/download/files/unprot/caliper/caliper_5.1/caliper_user_guide.pdf first (searching for "traps" ought to help you narrow down your plan of attack here).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2010 03:46 AM - edited тАО08-20-2014 12:06 PM
тАО01-23-2010 03:46 AM - edited тАО08-20-2014 12:06 PM
Re: HP-UX Integrity alignment traps
Did it say what type of traps?
Typically on HP-UX, one trap and your application aborts.
The traps where are it continues are either:
1) Some type of signals with a handler
2) Denorm traps for very small floating point values. Do you have any floating point?
I had an application where it slowed because of these and we couldn't see gpm's warning about too many traps because we had the window going off the screen to the right. :-(
Linking with +FPD, will cause these to quickly flush to zero. (We thought we did that but only had +FPD at compile time.)
3) Alignment traps. This will kill you too.
As Don says, caliper should help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2010 05:42 AM
тАО01-30-2010 05:42 AM
Re: HP-UX Itanium
Unfortunately, the processor I have in my doesn't support the caliper traps :(
sawbuck # caliper traps date
HP Caliper: usage error:
The 'traps' measurement is only supported on Montecito processors.
Run caliper -H for help.
This is the processor information
CPU info:
Number of CPUs = 4
Clock speed = 1000 MHz
Bus speed = 400 MT/s
CPUID registers
vendor information = "GenuineIntel"
processor serial number = 0x0000000000000000
processor version info = 0x000000001f000704
architecture revision: 0
processor family: 31 Intel(R) Itanium 2 Family Processors
processor model: 0 Intel(R) Itanium 2 processor
processor revision: 7 Stepping B3
largest CPUID reg: 4
processor capabilities = 0x0000000000000001
implements long branch: 1
Bus features
implemented = 0xbdf0000060000000
selected = 0x0000000040000000
Bus Lock Signal masked
From vmstat, I see lot of system calls and interrupts. But, tusc doesn't show the total system calls. Would floating point errors cause number of system calls to go up ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2010 03:08 PM - edited тАО08-20-2014 12:06 PM
тАО01-31-2010 03:08 PM - edited тАО08-20-2014 12:06 PM
Re: HP-UX Integrity alignment traps
>the processor I have in my doesn't support the caliper traps
You probably don't need that to find out what type of traps. You need to get a sampling of where you are spending time in the kernel.
>Would floating point errors cause number of system calls to go up?
Not system calls, faults. See my 2) above.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2010 02:48 AM
тАО02-01-2010 02:48 AM
Re: HP-UX Itanium
In caliper, I see the following vmlinux modules taking more time. Am I hitting any unaligned data accesses ? I heard of a alignment debugger aldbg, but couldn't find any information on that ? How can I find out the code that is causing these unaligned access ?
vmunix::unaligned_get_gr unaligned_emu.c
vmunix::ss_get_rsebs ss_access.c
vmunix::bubbleup
vmunix::pre_hndlr hl_ivt.c
vmunix::post_hndlr hl_ivt.c
vmunix::as_ubcopy
vmunix::int_ldst unaligned_emu.c
vmunix::unaligned_hndlr hl_ivt.c
vmunix::ki_accum_pop_TOS clock_ki.c
vmunix::ki_accum_push_TOS clock_ki.c
vmunix::bubbledown
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2010 03:03 AM - edited тАО08-20-2014 12:05 PM
тАО02-01-2010 03:03 AM - edited тАО08-20-2014 12:05 PM
Re: HP-UX Integrity alignment traps
>Am I hitting any unaligned data accesses?
>vmunix::unaligned_get_gr unaligned_emu.c
It sure looks like it.
>How can I find out the code that is causing these unaligned access?
Don't call allow_unaligned_data_access and you'll abort on the first.
Basically if the application is calling that function, it should know (and document) where the aligned accesses are.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2010 11:03 PM - edited тАО08-20-2014 12:12 PM
тАО02-01-2010 11:03 PM - edited тАО08-20-2014 12:12 PM
Re: HP-UX Integrity alignment traps
Have you seen the documentation about misaligned data?
http://h21007.www2.hp.com/portal/download/files/unprot/aCxx/HTML_Online_Help/pragmas.htm#pragma-pack-ex3
Basically there are N ways to handle unaligned data:
1) Abort, default, highest performance.
2) Explicit copy for alignment
3) Using pragma pack, compiler handles multiple loads
4) Using 3) with 6)
5) Using 3) with 7)
6) Using pragma unaligned with types.
7) Using allow_unaligned_data_access
8) Using +un to assume all pointers are unaligned.