Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Using Shared Memory dev/shm

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Using Shared Memory dev/shm

#1 Post by bester69 »

Hi,

Today, 4Gb RAM came home, finally i can live ... :o

So, I want to work faster, do i need to enable Shared Memory in fstab?,
I added this line

Code: Select all

tmpfs      /dev/shm      tmpfs   defaults,size=2g   0   0
i see swap RAM partition is almost not growing (just 2MB), so then i understand shared memory is the swap in the RAM, and thats the reason it goes faster; isnt it?

I'd like to know, im not sure i must enable it
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

User avatar
dasein
Posts: 7680
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Using Shared Memory dev/shm

#2 Post by dasein »

bester69 wrote:So, I want to work faster, do i need to enable Shared Memory in fstab?,
No. Just use your system normally. If you want to minimize swapping, either:

1) Turn off swap completely. The disadvantage of this approach is that your system will hang if you use all 4GB of RAM. (Not at all out of the question, given your demonstrated fondness for wasting system resources.)

2) Reduce swappiness. Your system will still swap to disk, but less often.

Google has details on both methods.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Using Shared Memory dev/shm

#3 Post by Head_on_a_Stick »

bester69 wrote:So, I want to work faster, do i need to enable Shared Memory in fstab?
No.

My Debian jessie system already has that enabled:

Code: Select all

empty@jessie:~$ df -h | grep /dev/shm
tmpfs           1.8G  3.8M  1.8G   1% /dev/shm
deadbang

reinob
Posts: 1198
Joined: 2014-06-30 11:42
Has thanked: 99 times
Been thanked: 47 times

Re: Using Shared Memory dev/shm

#4 Post by reinob »

bester69 wrote: So, I want to work faster, do i need to enable Shared Memory in fstab?,
No. Do you know what shared memory is? did anyone tell you this would make you "work faster"?

Post Reply