Most Popular in Unix
-
Server error: 501 #5.1.3 in UNIX
-
problem with awk script
-
UX: useradd: ERROR: Path must not start with '/home/'.
-
Calculate the Median, first quartile and third quartile using AWK
-
ssh debug1: Exit status 254 problem
-
Tar too large to archive. Use E function modifier.
-
find and replace
-
problem with attaching multiple attachments dynamically.
-
Replace pipe with Broken Pipe
-
Stuck in pthread_cond_signal()
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
Blog sale!
A fix for those "Pairing Record Missing" errors
Twelve South HoverBar a unique way to marry iPad and iMac
Server error: 501 #5.1.3 in UNIX
VooMote Zapper universal remote for iOS: A first look and a rant
Localized Flipboard Content guides available for UK, Ireland, Australia and Canada
WiebeTech Drive eRazer Ultra provides super-secure drive wiping
Gear4?s Sleep Clock uses iPhone, radar to help you sleep better (video)
O2 network issues hinder iPhone users
AMD processors take on tablets