Operating System - HP-UX
1833268 Members
2813 Online
110051 Solutions
New Discussion

How to chew up some shared memory ?

 
SOLVED
Go to solution
Mel Burslan
Honored Contributor

How to chew up some shared memory ?

I know this is kind of a strange request but to prove/show people (non-sysadmin folks) how ipcs and ipcrm works, hand in hand, I need to find out a binary, regardless of what it does, which can gobble up some shared memory segments and is executable without any ill effects to the system by any non-root user.

What would even be better is, if the amount of the chunk it gobbles is adjustable by a command line parameter or a setting in some file.

Is there such an executable, already existing on the system in short of writing and compiling code. If not, I am open to simple c code which I can compile with default cc compiler without mastering make.

Thanks in advance...
________________________________
UNIX because I majored in cryptology...
2 REPLIES 2
curt larson_1
Honored Contributor
Solution

Re: How to chew up some shared memory ?

thanks to bill hassell, you might be able to make use of these

ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/programs/sh
minfo/
Mel Burslan
Honored Contributor

Re: How to chew up some shared memory ?

Thanks. That was exactly what I was looking for. Worked like a charm.
________________________________
UNIX because I majored in cryptology...