- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: mmap limitation
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
Forums
Discussions
Discussions
Discussions
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
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-2003 07:50 PM
01-22-2003 07:50 PM
mmap limitation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2003 08:31 PM
01-22-2003 08:31 PM
Re: mmap limitation
man mmap:
void * mmap(void *start, size_t length, int prot , int flags, int fd, off_t offset);
linux/types.h
typedef __kernel_size_t size_t;
asm/posix_types.h
typedef unsigned int __kernel_size_t;
So.. How long is an unsigned int these days?
With a bit of creativity, limits.h reports:
/* Maximum value an `unsigned int' can hold. (Minimum is 0.) */
# define UINT_MAX 4294967295U
Now, as to whether there is any other sort of limitation in place, I'm unsure. You'd have to poke through the kernel documentation. I recall limitations on memory page sizes for non-enterprise kernel builds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2003 07:18 AM
01-23-2003 07:18 AM
Re: mmap limitation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2003 01:55 PM
01-23-2003 01:55 PM
Re: mmap limitation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2004 12:43 PM
01-12-2004 12:43 PM
Re: mmap limitation
I have not gotten back into investigating max limitation on kernel2.4 regarding how much sharemem can mmap allocate? But now I am looking into something similar and I am wondering if some one could shed some lights onto this. Here's what bother me, when I check the sharemem list via ipcs I do not see the expected sharemem on the list. But according to top, my application has allocated 400Mbytes of share memory (which is allocated via mmap). could any one explain why top see the sharemem where as ipcs does not see the sharemem which our application has allocated.