What's swap memory, and when should you be concerned?

Memory is important resource in any application. All programs have to access data in various places, usually in many different places.This matters for performance because where we store data determines how long it takes to access it.Swap memory is a kind of "special" memory behavior used by Linux (it's in Windows and Mac too, but nobody deploys there and it works slightly differently in those environments so we're gonna skip that). When chunks of memory are either infrequently accessed or the box is low on memory, it may "page out" certain memory areas to the disk. This is swap memory.So, when you're accessing memory that's been swapped, you're accessing memory that isn't on a RAM stick - instead, it's on an SSD or HDD.
What's swap memory, and when should you be concerned? #ruby #rails #rubyonrails #bosnia #programming #tutorials #rubydeveloper #railsdeveloper

Nezir Zahirovic

Freelance software developer Ruby On Rails (4 years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles