- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Unable to mmap file
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
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
тАО10-01-2007 12:32 AM
тАО10-01-2007 12:32 AM
Our application team is complaining that a Job is aborting with the following message:
Unable to mmap lbl file '/var/opt/VM1/CP/.
.IA/IARESULT (256)': Not enough space
Question is What could be the reasons to unable to mmap the file because there is not enough space?
IA64 11.23
Regards,
Jo├гo Rei
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2007 12:54 AM
тАО10-01-2007 12:54 AM
Re: Unable to mmap file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2007 12:57 AM
тАО10-01-2007 12:57 AM
Re: Unable to mmap file
Knowing the exact 'errno' always helps. Knowing if you have sufficient swap space; the 'maxdsiz'; a 32-bit as opposed to a 64-bit process; and the 'flags' argument supplied to mmap()' are all important to deducing the reason for failure.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2007 03:13 AM
тАО10-01-2007 03:13 AM
Re: Unable to mmap file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2007 01:53 PM
тАО10-01-2007 01:53 PM
Re: Unable to mmap file
You are either out of swapspace or out of shared memory, depending on how you mapped it.
See comments by JRF and Clay.
>TuProc: Is /var or if it is a submount, /var/opt full?
mmap on a file has nothing to do with file system space.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2007 04:17 PM
тАО10-01-2007 04:17 PM
Re: Unable to mmap file
I meant it has nothing to do with exceeding file system space. It seems you would get EOVERFLOW if asking for more than was there. (Possible ENXIO too?)
I'm not sure what happens with a sparse file that is mapped and needs to allocate file space? Whether it is on the mmap(2) or the msync(2)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2007 02:45 AM
тАО10-02-2007 02:45 AM
Re: Unable to mmap file
The mmap function beeing used:
mmap (0, size, PROT_READ | PROT_WRITE,
MAP_FILE | MAP_SHARED , fildes , 0)
I've increased:
maxdsiz 4294963200
maxdsiz_64bit 17179869184
swapinfo -tam shown me no lack of swap.
Still hapenning.
shmmax seems high enough, (kcusage).
Any more ideias?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2007 03:42 AM
тАО10-02-2007 03:42 AM
SolutionBeing MAP_FILE, swap reservations also don't come into play -- there's no swap involved here [the file backs the mapping, not swap blocks].
Is this a 32-bit or 64-bit binary? Is there any use of mlock() or mlockall()?
Assuming you aren't really running out of lockable memory, your most likely culprit is that you are 32-bit and you are simply out of suitable shared address space in the default Memory Window [or "size" is above 1Gb in the above sample]. This can be due to shared address space fragmentation or simply having too many other applications running which also create shared objects. Best likely way to tell would be to pick up shminfo and see what's in your quadrants. There's a link in this message: http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1089977