Diffrence between swap and /dev/shm

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
sabirkkAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

FireflyITCommented:
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
torakeshbCommented:
/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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
miguels pawCommented:
do swap and tmpfs of shm connect or are the connected?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.