Gustavo Picon is sharing code with you
Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.
Don't show this againshm_rampin overview
Recent commits See more »
| Author | Revision | Comments | Message | Labels | Date |
|---|---|---|---|---|---|
|
|
16f90c2f7d40 |
Added tag 1.0 for changeset 61092a32cb7b |
|
||
|
|
61092a32cb7b |
initial commit shm_rampin 1.0 |
|
shm_rampin.c - http://code.tabo.pe/shm_rampin/ Copyright (c) 2009 Gustavo Picon Locks/unlocks Linux shared memory segments in RAM, so they're never swapped. (This is linux only. In BSD, use sysctl kern.ipc.shm_use_phys) Usage: shm_rampin [OPTIONS] Options: -l locks shared memory segments -u unlocks shared memory segments -i <shmid> performs the action in a specific shmid (ipcs -m for a list) -U <user_name> performs the action in all the shmems that belong to a given user -h displays this help message For instance to lock all the shared memory segments that belong to the `postgres` user in RAM: shm_rampin -l -U postgres And to unlock them: shm_rampin -u -U postgres