LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-29-2009, 03:26 PM   #1
dolphin77
Member
 
Registered: May 2009
Location: Odesa, Ukraine
Distribution: Slackware
Posts: 206

Rep: Reputation: 60
/dev/shm


Greetings.

I am just curious. Can anyone explain to me in few words, what is /dev/shm. Why it is by default in /etc/fstab of slackware-13, slackware-current. What advantages/disadvanteges it gives for laptop and\or for desktop.

Thank you in advance,
Vladimir
 
Old 12-29-2009, 03:29 PM   #2
cg40oz
LQ Newbie
 
Registered: Dec 2009
Location: /dev/random
Posts: 15

Rep: Reputation: 0
Read this:
http://en.wikipedia.org/wiki/Shared_memory
 
Old 12-29-2009, 04:22 PM   #3
dolphin77
Member
 
Registered: May 2009
Location: Odesa, Ukraine
Distribution: Slackware
Posts: 206

Original Poster
Rep: Reputation: 60
Thank you for your post, but
Quote:
Recent 2.6 Linux kernel builds have started to offer /dev/shm as shared memory in the form of a ramdisk, more specifically as a world-writable directory that is stored in memory with a defined limit in /etc/default/tmpfs. /dev/shm support is completely optional within the kernel config file. It is included by default in both Fedora and Ubuntu distributions, where it is most extensively used by the Pulseaudio application.
we do not have pulseaudio on Slackware. Why would we need /dev/shm. As far as I understood, it 'consumes' some part of RAM. And I do not see practical need for it on a simple desktop solution. Please correct me if I am wrong. I am not the programmer who would enjoy fast sharing data in between different hardware. I simply want to understand practical benefits of having this in fstab.
 
Old 12-29-2009, 04:29 PM   #4
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,259

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by dolphin77 View Post
Thank you for your post, but

we do not have pulseaudio on Slackware. Why would we need /dev/shm. As far as I understood, it 'consumes' some part of RAM. And I do not see practical need for it on a simple desktop solution. Please correct me if I am wrong. I am not the programmer who would enjoy fast sharing data in between different hardware. I simply want to understand practical benefits of having this in fstab.
I believe that if you are using the ati proprietary driver, then you need to have /dev/shm in your fstab.
 
Old 12-29-2009, 04:33 PM   #5
dolphin77
Member
 
Registered: May 2009
Location: Odesa, Ukraine
Distribution: Slackware
Posts: 206

Original Poster
Rep: Reputation: 60
Quote:
Originally Posted by stormtracknole View Post
I believe that if you are using the ati proprietary driver, then you need to have /dev/shm in your fstab.
Thank you too. I am on the open source stuff since September
 
Old 12-29-2009, 04:39 PM   #6
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,259

Rep: Reputation: 231Reputation: 231Reputation: 231
Oh, if you are also a user of qemu, then you will also need /dev/shm. Those are the only two that I know of.
 
Old 12-29-2009, 05:53 PM   #7
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519

Rep: Reputation: 142Reputation: 142
When I run SlackBuilds, I set TMP to /dev/shm

Less writes to the harddisk.

Last edited by piratesmack; 12-29-2009 at 05:55 PM.
 
  


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
/dev/shm GazL Slackware 2 05-28-2008 08:39 AM
/dev/shm? icecube Linux - Hardware 3 03-14-2006 07:34 AM
What is /dev/pts, /dev/shm? mrpc_cambodia Red Hat 1 10-18-2004 03:27 AM
What's the /dev/shm? antz1981cn Linux - Hardware 2 12-30-2002 01:55 PM
What is /Dev/shm? neil Linux - General 2 04-08-2002 03:25 AM

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

All times are GMT -5. The time now is 07:09 PM.

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