You are not logged in.

#1 2010-07-24 05:43:31

Lightrr
Member
Registered: 2010-07-24
Posts: 6

Ram

How do I increase the RAM allowed for a normal user?

Offline

#2 2010-07-24 06:11:11

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Ram

How did you limit it? Normally you can just go the other way.

That is to so say, please provide more info. Thanks.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#3 2010-07-24 06:13:06

Lightrr
Member
Registered: 2010-07-24
Posts: 6

Re: Ram

When I try to lock memory into the RAM as a normal user I get out of memory errors; however, when I try it as a root user it proceedes fine. (I have 3 GB DDR3 RAM available, and I am trying to reserve about 300 mb of it).

Offline

#4 2010-07-24 06:33:58

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Ram

I can only guess myself, what do you get as the output of the following,
cat /etc/security/limits.conf
free -m
ulimit -a


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#5 2010-07-24 06:37:51

Lightrr
Member
Registered: 2010-07-24
Posts: 6

Re: Ram

for ulimit -a

core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 30
file size               (blocks, -f) unlimited
pending signals                 (-i) 24041
max locked memory       (kbytes, -l) 40000
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 65
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 24041
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

free -m

             total       used       free     shared    buffers     cached
Mem:          3007       1543       1463          0         18        708
-/+ buffers/cache:        815       2191
Swap:          258         61        196

cat ...

# /etc/security/limits.conf
#
#Each line describes a limit for a user in the form:
#
#<domain>        <type>  <item>  <value>
#
#Where:
#<domain> can be:
#        - an user name
#        - a group name, with @group syntax
#        - the wildcard *, for default entry
#        - the wildcard %, can be also used with %group syntax,
#                 for maxlogin limit
#
#<type> can have the two values:
#        - "soft" for enforcing the soft limits
#        - "hard" for enforcing hard limits
#
#<item> can be one of the following:
#        - core - limits the core file size (KB)
#        - data - max data size (KB)
#        - fsize - maximum filesize (KB)
#        - memlock - max locked-in-memory address space (KB)
#        - nofile - max number of open files
#        - rss - max resident set size (KB)
#        - stack - max stack size (KB)
#        - cpu - max CPU time (MIN)
#        - nproc - max number of processes
#        - as - address space limit (KB)
#        - maxlogins - max number of logins for this user
#        - maxsyslogins - max number of logins on the system
#        - priority - the priority to run user process with
#        - locks - max number of file locks the user can hold
#        - sigpending - max number of pending signals
#        - msgqueue - max memory used by POSIX message queues (bytes)
#        - nice - max nice priority allowed to raise to values: [-20, 19]
#        - rtprio - max realtime priority
#
#<domain>      <type>  <item>         <value>
#

#*               soft    core            0
#*               hard    rss             10000
#@student        hard    nproc           20
#@faculty        soft    nproc           20
#@faculty        hard    nproc           50
#ftp             hard    nproc           0
#@student        -       maxlogins       4


*               -       rtprio          0
*               -       nice            0
@audio          -       rtprio          65
@audio          -       nice           -10
@audio          -       memlock         40000

Last edited by Lightrr (2010-07-24 06:39:52)

Offline

#6 2010-07-24 06:45:08

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Ram

I wonder if the last line in limits.conf has anything to do with it.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#7 2010-07-24 06:49:16

Lightrr
Member
Registered: 2010-07-24
Posts: 6

Re: Ram

But shouldn't that also apply to root?

Offline

#8 2010-07-24 06:51:40

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Ram

I don't think it should. Is root part of the audio group?


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#9 2010-07-24 06:56:08

Lightrr
Member
Registered: 2010-07-24
Posts: 6

Re: Ram

I was under the impression that root was under every group tongue

Thanks alot for the help!

Offline

#10 2010-07-24 06:59:10

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Ram

No problem at all. I hope that fixes it. (And don't forget to mark the thread as solved if it does.)


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#11 2010-07-24 07:01:42

Lightrr
Member
Registered: 2010-07-24
Posts: 6

Re: Ram

Will do!

Offline

#12 2010-07-24 10:50:52

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Ram

And next time please choose a more informative title.

Offline

Board footer

Powered by FluxBB