- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- shmem allocation question
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
тАО07-25-2007 11:10 PM
тАО07-25-2007 11:10 PM
shmem allocation question
One of our DBA wants to trace the crashed informix db memory dump. The crash occured on production system and he wants to examine the dump on test system. It is about 25G worth memory dump file, which is possible to be loaded into the memory by utility called xtrace (informix utility), but it fails to load the file for I think obvoius reasons (tusc output):
read(3, "e0b7\001\01 \006ffffffff\0\0\0\0".., 656) ............... = 656 shmget(0, 0xfffc0000, IPC_CREAT|IPC_EXCL|0600) ................... =
7831558
shmat(7831558, 0xc000000003418000, 0) ............................
ERR#22 EINVAL
shmat(7831558, NULL, 0) .......................................... = 0xc000000002bac000
The xtrace is trying to create 4G shmem region (0xfffc0000) and then trying to attach to the address the region is expected to start at (0xc000000003418000) - this is, however, not correct (according to the man pages for shmat), because the shmem region was not existing before, thus the starting address has to be assigned by OS first (received 0xc000000002bac000 on 2nd shmat call with NULL addr field). As the wanted and the assigned shmem region starting address do not match, it is not possible to examine the memory dump - utility probably can't handle the offset.
As there's about 800M gap betw wanted (0xc000000003418000) and assigned (0xc000000002bac000) shmem region starting address, my immediate thinking was to create some fake 800M shared mem region prior to running xtrace, so the desired & assigned address would eventually match.
This succeeded for 2 out of 7 segemnts to be allocated in total, others are tred to be mapped to higher addresses (about 8G offset betw 2nd and 3rd 4G segment. 3rd should start @ 0xc000000203398000 but is starting @ 0xc0000002e353c00). Is there any possibility, how to tell the OS to allocate shmem continuously? Many thanks for ideas.
Regards, Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2007 11:25 PM
тАО07-25-2007 11:25 PM
Re: shmem allocation question
On IPF, however -- chatr +as mpas xtrace and let it put the segment where it wants to within its own address space. [MPAS is allowed to specify a target virtual address on shmat()]. This is about the only thing I can think of that would give reliable results.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2007 01:27 AM
тАО07-26-2007 01:27 AM
Re: shmem allocation question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2007 03:54 PM
тАО07-26-2007 03:54 PM
Re: shmem allocation question
gdb just reads the core file and applies a fixed mapping to every access.
BTW, is this is a core file? Or a system panic dump?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-27-2007 12:59 AM
тАО07-27-2007 12:59 AM
Re: shmem allocation question
'file' command doesn't tell it is a corefile, neither it is a system panic dump. According to the info I have from the DBA, this dump was generated by crashing informix instance, not by the system like core file. I think this would rather be question for IBM support as the memory mapping doesn't seem to be the root cause of all this.