GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ulimit -m 10000
Operating System - HP-UX
1849586
Members
6899
Online
104044
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
Forums
Discussions
back
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
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
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
11-14-2002 04:48 AM
11-14-2002 04:48 AM
ulimit -m 10000
I was trying to limit the memory usage of one process by doing the following commands on a terminal:
1)ulimit -m 10000
2)ulimit -a
:::result show that memory set is 10000:::
3)run the process on this shell.
When process starts to do something, I see on the top command that it is consuming more than 10Mbytes memory still. Is this ulimit working in HP-UX 11.0? Is there something I missed on my procedure?
Thank you very much in advance for the help.
1)ulimit -m 10000
2)ulimit -a
:::result show that memory set is 10000:::
3)run the process on this shell.
When process starts to do something, I see on the top command that it is consuming more than 10Mbytes memory still. Is this ulimit working in HP-UX 11.0? Is there something I missed on my procedure?
Thank you very much in advance for the help.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2002 05:09 AM
11-14-2002 05:09 AM
Re: ulimit -m 10000
Hi,
Im sh-posix(1) manpage we don't have option -m for ulimit :
ulimit [-HSacdfnst] [limit]
Set or display a resource limit. The limit for a specified
resource is set when limit is specified. The value of limit can
be a number in the unit specified with each resource, or the
keyword unlimited.
The -H and -S flags specify whether the hard limit or the soft
limit is set for the given resource. A hard limit cannot be
increased once it is set. A soft limit can be increased up to
the hard limit. If neither -H nor -S is specified, the limit
applies to both. The current resource limit is printed when
limit is omitted. In this case, the soft limit is printed unless
-H is specified. When more than one resource is specified, the
limit name and unit are printed before the value.
If no option is given, -f is assumed.
-a List all of the current resource limits.
-c The number of 512-byte blocks in the size of core
dumps.
Hewlett-Packard Company - 18 - HP-UX Release 11.00: March 2002
sh-posix(1) sh-posix(1)
-d The number of kilobytes in the size of the data area.
-f The number of 512-byte blocks in files written by child
processes (files of any size can be read).
-n The number of file descriptors.
-s The number of kilobytes in the size of the stack area.
-t The number of seconds to be used by each process.
What shell do you used ?
Regards,
Jerome
Im sh-posix(1) manpage we don't have option -m for ulimit :
ulimit [-HSacdfnst] [limit]
Set or display a resource limit. The limit for a specified
resource is set when limit is specified. The value of limit can
be a number in the unit specified with each resource, or the
keyword unlimited.
The -H and -S flags specify whether the hard limit or the soft
limit is set for the given resource. A hard limit cannot be
increased once it is set. A soft limit can be increased up to
the hard limit. If neither -H nor -S is specified, the limit
applies to both. The current resource limit is printed when
limit is omitted. In this case, the soft limit is printed unless
-H is specified. When more than one resource is specified, the
limit name and unit are printed before the value.
If no option is given, -f is assumed.
-a List all of the current resource limits.
-c The number of 512-byte blocks in the size of core
dumps.
Hewlett-Packard Company - 18 - HP-UX Release 11.00: March 2002
sh-posix(1) sh-posix(1)
-d The number of kilobytes in the size of the data area.
-f The number of 512-byte blocks in files written by child
processes (files of any size can be read).
-n The number of file descriptors.
-s The number of kilobytes in the size of the stack area.
-t The number of seconds to be used by each process.
What shell do you used ?
Regards,
Jerome
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2002 05:10 AM
11-14-2002 05:10 AM
Re: ulimit -m 10000
Hi,
You look at the man page of the shell you are using.
#echo $SHELL
and locate the ulimit variables.
The max value of "data" that you are trying to set is determined by the kernel parameter "maxdsiz". So you have to bump up "maxdsiz" for this to work. Use ..
# ulimit -aS
to look at your current soft limit setting.
Robert-Jan.
You look at the man page of the shell you are using.
#echo $SHELL
and locate the ulimit variables.
The max value of "data" that you are trying to set is determined by the kernel parameter "maxdsiz". So you have to bump up "maxdsiz" for this to work. Use ..
# ulimit -aS
to look at your current soft limit setting.
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2002 05:23 AM
11-14-2002 05:23 AM
Re: ulimit -m 10000
Hi,
I can't find any information about this undocumented option, and I can't either find any difference between setting it or not. But '-d' option should be better :
- compile this one line program a.c using 'make a',
> ulimit -m 1
> a
> ulimit -d 1
> a
sh: There is not enough memory available now.
So -d if much more efficient ...
Regards
I can't find any information about this undocumented option, and I can't either find any difference between setting it or not. But '-d' option should be better :
- compile this one line program a.c using 'make a',
> ulimit -m 1
> a
> ulimit -d 1
> a
sh: There is not enough memory available now.
So -d if much more efficient ...
Regards
It works for me (© Bill McNAMARA ...)
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 2026 Hewlett Packard Enterprise Development LP