2
I understand the general concept of swap memory
, but I need to somehow build a program that forces the use of swap memory
for performance testing and I don't know where to even begin.
Basically, I am going to install a flash memory card
that will be used as swap space
, and I want to test how the performance improves by doing so. I thought it would be easiest to make a simple program that uses multiple threads to test how well it handles multiple processes running simultaneously. Problem is, I just don't know enough about swap
(or gathered enough insight from what i've read) to know how I can "force" these threads to use swap space
.
Anyone have some solid suggestions on how I can approach this? I would be running this on a 64-bit linux OS
, most likely Fedora 18
.
>
I'm not worried about the life of the flash device. This is work related and I need to test a flash device that is setup specifically for swap use. It's a new feature of the product and need to get some data about performance. – cHam – 2013-12-06T17:15:04.580