1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
Mark Haney wrote: |
5 |
> Ever since I blew away my .kde folder I'm getting this error on k3b: |
6 |
> |
7 |
> :-( unable to anonymously mmap 33554432: Resource temporarily unavailable |
8 |
> |
9 |
|
10 |
Not 100% sure on the exact error, but it sounds like a problem I was |
11 |
having. Try ulimit -l - it probably comes back with some absurdly low |
12 |
limit of 32 or such. Not sure where the defaults are configured, but |
13 |
this is the locked memory quota and 32K is not quite enough to burn a |
14 |
disc. (Locked memory is memory that is not permitted to be swapped to |
15 |
disk - the logic being that by locking the buffer you assure that it |
16 |
will be rapidly available and you're less likely to create coasters.) |
17 |
|
18 |
The solution is to "ulimit -l unlimited" as root, then su to your user |
19 |
account before running k3b. Your user login will inherit the higher |
20 |
quota that way. |
21 |
|
22 |
If somebody knows where to change the defaults let me know - I tried |
23 |
inserting the following line into /etc/security/limits.conf to no avail: |
24 |
@cdrom hard memlock 64000 |
25 |
|
26 |
|
27 |
The limit on locked memory is probably low to help prevent DoS attacks - |
28 |
if you lock all the physical RAM in the machine you force whatever is |
29 |
left running to swap into some absurdly small amount of actual RAM. |
30 |
However, if the limit is per-process you can still just DoS the system |
31 |
by forking a million times and allocating 32K to each process. In any |
32 |
case, if you don't want somebody to DoS your system you probably don't |
33 |
want to give access to run arbitrary programs... |
34 |
|
35 |
-----BEGIN PGP SIGNATURE----- |
36 |
Version: GnuPG v1.4.5 (GNU/Linux) |
37 |
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org |
38 |
|
39 |
iD8DBQFE67GBG4/rWKZmVWkRAmQsAKCYMJxCW73uRRS0zqbWdqdFOVftVQCeJPJ6 |
40 |
MzfJhB4V14g3GtQNWQz7WE8= |
41 |
=5YW7 |
42 |
-----END PGP SIGNATURE----- |