HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Memory (RAM) usage and quota
Operating System - HP-UX
1833178
Members
3141
Online
110051
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-16-2003 04:32 AM
10-16-2003 04:32 AM
Dear all,
a few weeks ago I switched on the quota for the users on our hp-ux WS. I as a user accessed today some programms which are used to evaluate big amounts of data. Before the quota was switched on these programms worked fine. Now the don' t anymore.
Is there any connection between the quota limited disk usage and the freedom to use all memory? Is there any othe daemon limmiting the memory usage?
Thanks for some hints,
Oliver
a few weeks ago I switched on the quota for the users on our hp-ux WS. I as a user accessed today some programms which are used to evaluate big amounts of data. Before the quota was switched on these programms worked fine. Now the don' t anymore.
Is there any connection between the quota limited disk usage and the freedom to use all memory? Is there any othe daemon limmiting the memory usage?
Thanks for some hints,
Oliver
Oliver Schmitz
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2003 04:35 AM
10-16-2003 04:35 AM
Re: Memory (RAM) usage and quota
Hi again,
I forgot to describe the problem when using my C routines: They compile (GNU C) without problems. In the beginning I declare some big arrays with fixed size of 100MB. Alltogether 350 MB of memory (4.5 GB inside) are supposed to be used.
My programm ends with a segmentation fault (core dumped). When I declare my array one order less (10 MB each) for test purposes, the programm runs as intended.
Thanks and best regards,
Oliver
I forgot to describe the problem when using my C routines: They compile (GNU C) without problems. In the beginning I declare some big arrays with fixed size of 100MB. Alltogether 350 MB of memory (4.5 GB inside) are supposed to be used.
My programm ends with a segmentation fault (core dumped). When I declare my array one order less (10 MB each) for test purposes, the programm runs as intended.
Thanks and best regards,
Oliver
Oliver Schmitz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2003 04:46 AM
10-16-2003 04:46 AM
Solution
Quotas are disk only; they have nothing to do with memory. This is much more likely to be a problem with the kernel settings of maxdsiz (or possibly maxssiz if these arrays auto declared). If this is 32-bit code then you are probably seeing an artifact of memory fragmentation. By the way, you seem to be saying that you are declaring statically sized arrays. When you get into data strucxtures this large, it is considered much better form to use dynamically allocated arrays -- and they are just as convenient to address.
For example, suppose that you need an array of doubles:
double *fake_array = NULL;
int sz = 100000;
fake_array = (double *) calloc((size_t) sz,sizeof(double);
if (fake_array != NULL)
{ /* all ok */
fake_array[0] = 5.0;
fake_array[6] = 6.789;
/* finally, when finished */
free((void *) fake_array);
fake_array = NULL;
}
else
{
fprintf(stderr,"Can't allocate memory (%d)\n",errno);
}
You can use another level of indirection and get multi-dimensional arrays and you can even use realloc to grow arrays 'on the fly'. This is a much better technique than simply declaring large arrays.
For example, suppose that you need an array of doubles:
double *fake_array = NULL;
int sz = 100000;
fake_array = (double *) calloc((size_t) sz,sizeof(double);
if (fake_array != NULL)
{ /* all ok */
fake_array[0] = 5.0;
fake_array[6] = 6.789;
/* finally, when finished */
free((void *) fake_array);
fake_array = NULL;
}
else
{
fprintf(stderr,"Can't allocate memory (%d)\n",errno);
}
You can use another level of indirection and get multi-dimensional arrays and you can even use realloc to grow arrays 'on the fly'. This is a much better technique than simply declaring large arrays.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2003 04:58 AM
10-16-2003 04:58 AM
Re: Memory (RAM) usage and quota
Hi Oliver,
My guessis that after you switched the quota, the system is unable to create the temporary file while it is evaluating the data. You are probably limiting the size of the amount of disk space the user can use and that could be creating problem when the program is trying to use more disk space while working on the data. This may not be a memory issue.
Hope this helps.
Regds
My guessis that after you switched the quota, the system is unable to create the temporary file while it is evaluating the data. You are probably limiting the size of the amount of disk space the user can use and that could be creating problem when the program is trying to use more disk space while working on the data. This may not be a memory issue.
Hope this helps.
Regds
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP