LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-19-2005, 10:49 AM   #1
SlackwareInAZ
Member
 
Registered: Apr 2005
Posts: 55

Rep: Reputation: 15
/dev/shm questions??


Noticed that Gentoo and Arch recommend using /dev/shm and tmpfs entries in /etc/fstab, as shown below:

They say the 2.6 kernel needs it when using udev.

Have never had any problem with 2.6 and udev w/o these entries, and I am not quite sure what they are for? Do they create an area for shared memory like a dynamic swapfile, ala windows 98 or what?


none /dev/shm tmpfs defaults 0 0
tmpfs /tmp tmpfs defaults 0 0

Thanks,
Gary
 
Old 07-19-2005, 10:58 AM   #2
Namaseit
Member
 
Registered: Dec 2003
Distribution: Slackware
Posts: 325

Rep: Reputation: 30
I'm not sure exactly I've only used it with qemu emulator but I did a quick google search and it said it was for devfs. udev might still have it for compatability purposes though. The thread I found said it was because glibc 2.2 expected tmpfs to be mounted at /dev/shm. But this was an old lkml posting(6 Apr 2002). But It seems to make sense.
 
Old 07-19-2005, 11:08 AM   #3
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Is it safe to mount /tmp as tmpfs like the fstab lines you posted suggest ?
 
Old 07-19-2005, 12:34 PM   #4
SlackwareInAZ
Member
 
Registered: Apr 2005
Posts: 55

Original Poster
Rep: Reputation: 15
keefaz,

I think you're right. I was viewing several documents and may have been confused as to whether both tmpfs were needed. Interestingly, when I "df" after running for awhile, it does show about 1% usage on the tmpfs mounted on /tmp. Once when I viewed the contents of /tmp folder, I noticed an alsa file locked, so maybe that was the 1%.

Im going to remove the /tmp line and just leave the /dev/shm mounting point for tmpfs.

I hope someone has a definitive answer as to whether the /dev/shm and tmpfs is recommended for 2.6 kernel and udev or is it just a Gentoo recommendation and a leftover from the soon to be obsolete devfs.

Thanks,
Gary
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What is : /dev/shm PionexUser Linux - Newbie 4 03-14-2006 07:48 AM
What is /dev/pts, /dev/shm? mrpc_cambodia Red Hat 1 10-18-2004 03:27 AM
what is /dev/shm? chem1 Linux - Hardware 13 05-31-2004 02:52 PM
What's the /dev/shm? antz1981cn Linux - Hardware 2 12-30-2002 01:55 PM
/dev/shm sakeeb Linux - Software 9 06-05-2002 06:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration