1 |
On 08/05/2013 07:55, Walter Dnes wrote: |
2 |
> I'm running mdev, so that may be related. Here's my story... a script |
3 |
> I run to automatically process digital photos started blowing up on me. |
4 |
> After much bashing of head against brick wall, I determined that |
5 |
> /dev/shm now has an absolute max size of 10 megabytes! Any larger files |
6 |
> could not be written to it. Here's all the uncommented stuff in /etc/fstab |
7 |
> |
8 |
> |
9 |
> /dev/sda5 / ext2 noatime,nodiratime,async 0 1 |
10 |
> /dev/sda7 /home reiserfs noatime,nodiratime,async,notail 0 1 |
11 |
> /home/bindmounts/opt /opt auto bind 0 0 |
12 |
> /home/bindmounts/var /var auto bind 0 0 |
13 |
> /home/bindmounts/usr /usr auto bind 0 0 |
14 |
> /home/bindmounts/tmp /tmp auto bind 0 0 |
15 |
> /dev/sda6 none swap sw 0 0 |
16 |
> /dev/cdrom /mnt/cdrom iso9660 noauto,users,ro 0 0 |
17 |
> /dev/sr0 /mnt/dvd auto noauto,users,ro 0 0 |
18 |
> devpts /dev/pts devpts defaults 0 0 |
19 |
> none /dev/shm tmpfs rw,noatime,noexec,nosuid,nodev 0 0 |
20 |
> |
21 |
> Meanwhile, my netbook, with the /dev/shm line commented out, runs just |
22 |
> fine and handles large files in /dev/shm. I followed the example at |
23 |
> http://wiki.gentoo.org/wiki/Complete_Handbook/Configuring_the_system |
24 |
> with slightly more paranoid settings, e.g. noexec. What gives? |
25 |
> |
26 |
|
27 |
|
28 |
a tmpfs defaults to half ram size. If yours is 10M, then quite obviously |
29 |
you run some code somewhere that does it different :-) |
30 |
|
31 |
You could go through the effort of tracking down why. Unless this is a |
32 |
default behaviour of mdev which needs debugging, pathcing and fixing, I |
33 |
don't think you should spend any brain cycles on this, just add this to |
34 |
the mount options |
35 |
|
36 |
size=50% |
37 |
|
38 |
-- |
39 |
Alan McKinnon |
40 |
alan.mckinnon@×××××.com |