Most Popular in Unix
-
ILOM Sunservice login incorrect
-
Auto putty login and an ebook required
-
zlogin: makeutx failed
-
what is the difference between /etc/mnttab and /etc/vfstab
-
Jumpstart Error: Unsupported version (3.0).
-
SAN/Solaris: luxadm shows NOT CONNECTED
-
involuntary context switching
-
Net Calculator
-
Installing bash on AIX 6.1
-
SFTP check if file exists
Lock N go or part 2 of VDI for home.
As mentioned in VDI for home blog entry I needed to write a small C program that locks some memory and then free it forcing Solaris to push out cached data, and memory being used by executable s. So here it is, it?s been tested and works for me, your mileage may vary, its currently limited to only one command line argument, I?m sure it?s just a few more lines to convert it to many command line variables but I figure I needed to get this out in the world before I forget about it.
It?s based on James Litchfield's blog entry on locking memory found at Locking Memory
Download the code at lockNgo.c
To build, use either cc or gcc
gcc ?o lockNgo.c or cc ?o lockNgo.c
It?s based on James Litchfield's blog entry on locking memory found at Locking Memory
Download the code at lockNgo.c
To build, use either cc or gcc
gcc ?o lockNgo.c or cc ?o lockNgo.c
To run you need to be root or granted PRIV_PROC_LOCK_MEMORY privilege as documented in James?s blog above, pass ?h to see arguments that can be used.
More Stories in Unix Admin Corner
Most Popular Stories
A fix for those "Pairing Record Missing" errors
ILOM Sunservice login incorrect
Auto putty login and an ebook required
zlogin: makeutx failed
Innovation isn't dead, it just moved to the cloud
Diablo 3 Slow on Mac? Here is a Solution
Planning Board Rendering Unveils New Glass-Enclosed Apple Store for Stanford
7 Online Resources To Trace The History Of Your House
Daily iPhone App: Elenints matches Triple Town's planning with a few new tricks
Meet Heckerty, well-known British children's story, makes its way to the iPad