You are not logged in.
Pages: 1
How do I increase the RAM allowed for a normal user?
Offline
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
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
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
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
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
But shouldn't that also apply to root?
Offline
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
I was under the impression that root was under every group
Thanks alot for the help!
Offline
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
Will do!
Offline
And next time please choose a more informative title.
Offline
Pages: 1