Diffrence between swap and /dev/shm

sabirkk
sabirkk used Ask the Experts™
on
Hi All ,

           Can any body gives me idea what is /dev/shm is , i know it is shared memory . please explain from where it is allocated   from (RAM or HDD ) .

what is difference between swap and share memory ?


with regards

mohamed
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Hi

/dev/shm is a method of using a mounted area of the harddrive as a means of transfering data between applications, this can be a significant boost for heavily loaded systems.

a good explanation is here ...
http://www.cyberciti.biz/tips/what-is-devshm-and-its-practical-usage.html

SWAP memory an area of your Harddrive that is used as RAM check out this link for a good explanation ...
http://www.go2linux.org/Swap-memory-increase-with-swap-file

Hope this helps,

Steve
/dev/shm also know as tmpfs is shared memory and it is used for passing the data between programs. This directly his will result into speeding up things on Linux.

 Swap space is the space whereby a page of memory is copied to the preconfigured space on the hard disk to free up that page of memory.

do swap and tmpfs of shm connect or are the connected?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial