I am having difficulty trying to increase the soft stack limit to 16384 for user george on this Solaris 10 SunFire Sparc server as follows:
However, I am not able to apply the same changes (increase soft stack ulimit to
16384 for george, which will run a resource intensive in cron overnight scheduled
process) after having logged back in to the same system as george, particularly
in C shell where this program will be running in.
The output remains the same as follows:
The stack limits of 8192 returned after logging back in as root.
I had to replaced process.max-file-descriptor to process.max-stack-size
in /etc/project directly since I couldn't work out how to do this from projmod.
process.max-file-descriptor was incorrectly added for xtendusers in
/etc/project initially. Not sure whether this may be reason why the change hasn't
taken affect for george.
My understanding of soft and hard limits was that the soft limit is the
maximum that the system can access by that user, and the hard limit
defines the maximum value the system can be updated to for soft limits. Is this
correct?
This resource intensive application needs the soft limit to be 16384.
First we must create new user account:
Now we create new project and set new value for process.max-stack-size:
As you can see, I didn't use any special command to assign this project for user george. It is possible, because I use special name for project "user.george". With this method I can also assign default project for group. I just must use "group.groupname".
In your example project is assigned to user george but it is not the default project.
You can check that with command projects. You should get something like this:
To set accountusers as default project for user george with your method you should add the folowing line in file /etc/user_attr
I'm not sure what was your intention, but you set max-stack-size only to 16 kilobytes, so you get Segmentation Fault.
In my example I use 16384k notation and in /etc/project we can see 16777216.
Now we can log as george and check our configuration:
I'm not sure but I think that you don't need to set up pfcsh. It is shell used when we setup RBAC but RBAC is not used in this case.
Thank you for providing detail steps to successfully increase the soft stack ulimit for user george. The important step is to ensure that the value 16777216 is set even though I got 16384k, and had to overwrite it with 16777216 by editing /etc/project to get the following:
It still puzzles me that (basic,16384,deny) worked for /usr/bin/sh & /usr/bin/ksh yet only (basic,16777216,deny) will worked for /usr/bin/csh. In other word, we don’t need /usr/bin/pfcsh but make sure that (basic,16777216,deny) is set instead.
Thank you so much for both of your help,
George
Last edited by fpmurphy; 11-09-2012 at 11:17 AM..
Reason: fonts and color tags removed
Hi Guys,
I'm trying to install Oracle Database on to Oracle Linux 7.6 but when
the database install package checks the OS set-up, it keeps on failing
on the soft limits for the stack. It's default value is 8192 but I'm trying
to set it to 10240.
This is what I added to... (2 Replies)
Hello All,
We have a working script which identifies and kills ipcs resources which havent been correctly killed during normal shutdowns.
It is working fine and dandy however there are some issues now.
Environment:
SunOS 5.10 Generic_148888-03 sun4u sparc SUNW,SPARC-Enterprise
... (4 Replies)
Hi all, I'm using to Solaris machine. When I run a simple script this messenger come out:"limit: stacksize: Can't remove limit". Any one know the way to resolve this problem without reboot the machine?
Thanks in advance. (3 Replies)
Hi,
I am new to the linux kernel development area. I want to know what is the difference between kernel mode stack and user mode stack? Does each process has a user mode stack and a kernel mode stack?? Or Each process has a user mode stack and there is only one kernel mode stack that is shared by... (4 Replies)
Is there a limit of 512Mb when doing a "chfs -a size=XXXXX /myfs" ?
I managed to increase /var to 512MB fine, no issues, then i wanted to increase /usr to 2Gb, but when i enter:
# chfs -a size=2260992 /usr
chfs: 0506-908 Cannot reduce size... (5 Replies)
When I do a hard reboot, the system recognizes both the ttya and the ttyb, but when I do a hard reboot, it only doesn't recognize the ttyb. Is there a way I can fix this???
Thanks!:confused: (5 Replies)