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-29-2002 07:23 PM
01-29-2002 07:23 PM
Memory
I can only locate 1009 meg malloc'ed When i run malloc program . Currently i have 512 MB Memory and 2 GB Swap space in HP_UX11
Current Kernel Parameter Setting:
maxdsiz :2063835136
maxdsiz_64bit :2063835136
maxfiles :1024
maxfiles_lim :2048
maxssiz :16384000
maxssiz_64bit :20971520
maxswapchunks : 4096
maxtsiz :1073741824
maxtsiz_64bit :2147483648
shmmax :2147483648
I wonder why i can't locate more than 1 GB when i run malloc program?
My malloc program:
main () {
char *mem[250000]; /* one MB here */
int i, j;
for (i = 2; mem[i] = (char *) malloc(1024 *1024); i++)
printf("%d meg malloc'ed\n",i);
}
Please advise.
Many Thanks.
Regards,
Pat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2002 09:14 PM
01-29-2002 09:14 PM
Re: Memory
1- kernel parameter (maxdsiz & maxdsiz_64)
2- swap space
I would suggest 2) because it looks like you have increased your kernel parameters. What you can do is quickly create filesystem swap on-the-fly and run your malloc program again to see if you still have the error. If swap space is the cause, you would then add device swap later.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2002 09:31 PM
01-29-2002 09:31 PM
Re: Memory
#script to check installed and freememory
#/usr/bin/sh
let x=$(grep -i physical: /var/adm/syslog/syslog.log | head -1 | awk '{print $7
let z=$(vmstat|tail -1|awk '{print $5}')*4096;let z=$z/1000000
let free=100000/$x*$z
let free=$free/1000
let free=100-$free
echo "$x Mb physical memory \n$z Mb memory free \n$free % used"
The above was picked up from one of our more experienced members
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2002 06:35 PM
01-31-2002 06:35 PM
Re: Memory
For HP_UX 11 , is there any limitation ?
Do i need to apply patch or is there any kernel parameter need to be set?
Please advise.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2002 07:23 PM
01-31-2002 07:23 PM
Re: Memory
maxdsiz :2063835136
maxdsiz_64bit :2063835136
maxssiz :16384000
maxssiz_64bit :20971520
I would try to increase maxssiz and maxssiz_64bit first. And then if it still not working, increase maxdsiz and mazdsiz_64bit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2002 07:47 PM
01-31-2002 07:47 PM
Re: Memory
However, you can change the executable to EXEC_MAGIC and start the data area in quadrant 1 just after the end of the text portion of the program. This gives the program access up to 1900 megs of RAM. To create an executable in EXEC_MAGIC format, link the executable with the -N option. (See ld(1) man page for details.)
Read all the details in the white paper on memory management in /usr/share/doc.
Bill Hassell, sysadmin