Set maximum memory for user


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Set maximum memory for user
# 1  
Old 06-09-2014
Set maximum memory for user

Hi,

I have as Solaris 10 (x86) system. I want to set the maximum memory for the user
But the following comaand is valid only till next reboot.Pls let me know how to make it permanenent.
HTML Code:
prctl -n project.max-shm-memory -r -v 4G -i project 3
 
# 2  
Old 06-09-2014
You can place that command in the startup/inittab
# 3  
Old 06-10-2014
I am no Solaris expert, so take this with some grain of salt:

There is a file in /etc (if i remember correctly "/etc/limits" or something such) where every user-specific limit is set. You can edit this file with a text editor.

I hope this helps.

bakunin
# 4  
Old 06-10-2014
I've no clue about Solaris 'projects', but projmod looks like it might do the job.
# 5  
Old 06-10-2014
Thanks,
# 6  
Old 06-10-2014
Quote:
Originally Posted by bakunin
I am no Solaris expert, so take this with some grain of salt:

There is a file in /etc (if i remember correctly "/etc/limits" or something such) where every user-specific limit is set. You can edit this file with a text editor.

I hope this helps.

bakunin
I think you are referring to /etc/project .
# 7  
Old 06-10-2014
man resource_controls
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

Cannot set 'soft limits' for 'maximum stack size' for a standard user

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)
Discussion started by: ASGR
2 Replies

2. AIX

Permanently set maxdata to maximum

Hi, I've a 32-bit program running on AIX. By default the memory limit of the process is 256 MB as per the 32-bit AIX OS behavior. This can be changed using the LDR_CNTRL=maxdata environment variable. Baseed on the value that we set in terms of increments of segments the process... (6 Replies)
Discussion started by: kprajesh
6 Replies

3. Filesystems, Disks and Memory

Maximum Memory RAM for windows 7 32 bit

Hi, i have just installed 4 gb RAM ddr3 on OS Windows 7 32 bit. In "manage peripherals" i see this section: Memory installed (ram) : 4,00 gb (2,30gb usable) Why only 2,30 gb usable ? In Windows 7 32bit the maximum size is not 3,00gb ? see file attached, please (4 Replies)
Discussion started by: nash83
4 Replies

4. Shell Programming and Scripting

Maximum number from input by user

I am trying to calculate the maximum number from four numbers input by the user. I have the following code, but it does not work. It says there's an error with the last line "done". Any help would be appreciated. max=0 echo "Please enter four numbers: " for i in 1 2 3 4 do read number... (17 Replies)
Discussion started by: itech4814
17 Replies

5. Solaris

cant set password for user

hi everybody i cant set password for user (jam) i tried to #passwd jam enter newpasswd : after enter it showing passwd : cannot get default domain:internal yp server or client error i also check cat /etc/shadow file jam:*:LK*:........ user is locked ... and i... (4 Replies)
Discussion started by: coolboys
4 Replies

6. UNIX for Dummies Questions & Answers

Set up user trusting

dears am having 310-200 exam tomorrow and am preparing my self for the exam but i am confused of the below question: Q: You receive a request to set up trusting for user1 when user1 logs in to system1 from system2. so the choices are: A)system 1 user 1. B)user 1 system 2. C)system 2... (3 Replies)
Discussion started by: thehero
3 Replies

7. Programming

Regarding the maximum memory allocated by malloc() function on HP-UX B11.11

In a 'C' program,when I am trying to allocate memory with the help of malloc () function, it is allocating the memory up to a certain limit for e.g. in my case, it is 670 MB (approx). malloc() returns NULL if I allocate more than this amount of memory.When I tried to allocate memory in chunks of... (1 Reply)
Discussion started by: vipinsachan
1 Replies

8. Solaris

MAximum ammount of memory

Wich is the maxumum ammount of memory supported by Solaris in the most recent version? And somebody knows if there is a document on SUN that support this? In advance thanks. (8 Replies)
Discussion started by: GEIER
8 Replies

9. UNIX for Advanced & Expert Users

Maximum number of threads per user

Anybody knows how to setup Maximum number of threads per user or some other value on Sun Solaris 8. (1 Reply)
Discussion started by: s_aamir
1 Replies
Login or Register to Ask a Question