?
Solved

/dev/shm gets out of space

Posted on 2007-03-19
3
Medium Priority
?
1,444 Views
Last Modified: 2008-01-09
I use a SUSE 10.0 system as a build machine. The output is an ISO file. Everything has work great until just recently. When I build, my /dev/shm gets out of space. I clean it before I build, but I still get problems with it. What can I do to fix the problem? Is it possible to resize it? I had an idea I could make a soft link to some other place. How do I do that? THe temporary directories that are created here have rather random names. How do I handle that?


> df -h
...
tmpfs                1010M 1010M     0 100% /dev/shm
...
0
Comment
Question by:mdoland
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 20

Accepted Solution

by:
nedvis earned 500 total points
ID: 18750584
Can you post your /etc/fstab file contents?
What is the amount of physical ( RAM) memory installed on your computer?
Is your swap file large enough?
what temporary files/directories you are mounting within tmpfs ?
Have you created mount point for your tmpfs ( /dev/shm) ?
---------------------------------------------------------------------------------------------------------------------------
glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
    POSIX shared memory (shm_open, shm_unlink). Adding the following
    line to /etc/fstab should take care of this:

         tmpfs   /dev/shm        tmpfs   defaults        0 0

    Remember to create the directory that you intend to mount tmpfs on
    if necessary (/dev/shm is automagically created if you use devfs).

    This mount is _not_ needed for SYSV shared memory. The internal
    mount is used for that.
-------------------------------------------------------------------------------------------------------------------------------

Type: mount
 command to see /dev/shm as a tempfs file system which keeps all files in VIRTUAL MEMORY. Everything in tmpfs is temporary in the sense that no files will be created on your hard drive. If you unmount a tmpfs instance, everything stored therein is lost. By default
--------------------------------------------------------------------------------------------------------------------------------
You might want to resize ( enlarge)  your swap partition either by recreating an existing one or by adding more swap space by creating additiona swap partitions on second hard-disk.
--------------------------------------------------------------------------------------------------------------------------------
Last but not least important thing: make sure your existing swap partition is mounted and utilized by system properly. It happens sometimes : for whatever reason system does not mount swap partition ( corrupt partition, dammaged partition table and so on)
Analyze your kernel debugging logs - type:  
                                                                              dmesg  
0
 

Author Comment

by:mdoland
ID: 18754633
/dev/fstab:

/dev/hda3            /                    reiserfs   acl,user_xattr        1 1
/dev/hda1            /boot                reiserfs   acl,user_xattr        1 2
/dev/hda4            /home                reiserfs   acl,user_xattr        1 2
/dev/hda2            swap                 swap       defaults              0 0
proc                 /proc                proc       defaults              0 0
sysfs                /sys                 sysfs      noauto                0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
/dev/dvdrecorder     /media/dvdrecorder   subfs      noauto,fs=cdfss,ro,procuid,
nosuid,nodev,exec,iocharset=utf8 0 0
/dev/fd0             /media/floppy        subfs      noauto,fs=floppyfss,procuid
,nodev,nosuid,sync 0 0
none                 /subdomain       subdomainfs noauto         0 0
0
 

Author Comment

by:mdoland
ID: 18754651
# mount
/dev/hda3 on / type reiserfs (rw,acl,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/hda1 on /boot type reiserfs (rw,acl,user_xattr)
/dev/hda4 on /home type reiserfs (rw,acl,user_xattr)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/fd0 on /media/floppy type subfs (rw,nosuid,nodev,noatime,fs=floppyfss,procuid)
/dev/hdc on /media/dvdrecorder type subfs (ro,nosuid,nodev,fs=cdfss,procuid,iocharset=utf8)
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month9 days, 20 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question