Git Product home page Git Product logo

yp-svipc's Introduction

System-V plugin for yorick / python.

note: MacOSX does not provide semtimedop. The module provides a hacked
implementation that emulates the behaviour.

TIPS AND TRICKS:

- max number of sem -> 1024
     sysctl -w kernel.sem="250 32000 32 1024"
     sysctl -w kernel.sem="500 32000 32 1024"

- (linux) the maximum amount of shared memory is a kernel config parameter.
   You may find what value it's using one of these commands. The value
   printed is a number of bytes:
   
      sysctl kernel.shmmax
      
      cat /proc/sys/kernel/shmmax
      
   You can change this value 'on the fly' issuing one of these commands
   as 'root'. Here 3221225472 corresponds to 3 GB
      
      sysctl -w kernel.shmmax=3221225472
      
      echo 3221225472 > /proc/sys/kernel/shmmax
      
   To change the default value so it is setup everytime the kernel is booted:
      
      edit the file:
         
         /etc/sysctl.conf
      
      add/modify the entry:
         
         kernel.shmmax = <number of bytes>

- osx:

   sysctl -w kern.sysv.shmmax=33554432
   sysctl -w kern.sysv.shmmin=1
   sysctl -w kern.sysv.shmmni=256
   sysctl -w kern.sysv.shmseg=64
   sysctl -w kern.sysv.shmall=8192

   kern.sysv.shmmni may no work from the command line,
   edit /etc/sysctl.conf and reboot.



- trace memory usage of your process

   watch -d ps -C yorick -F
   watch -d ps -C python -F

- "ipcs" provides some handy commands to work from the shell.
  consult the man page for details

  linux:
    ipcs | grep 0xbadca
    ipcrm -M 0xbadcafe -S 0xbadcafe
   
    ipcrm `ipcs | egrep '0x7dc' | awk '{print "-S " $1}'`
    ipcrm `ipcs | egrep '0x7dc' | awk '{print "-M " $1}'`
    ipcrm `ipcs | egrep '0x7dc' | awk '{print "-Q " $1}'`
    ipcrm `ipcs | egrep '0x808|0xdcb|0x101' | awk '{print "-S " $1}'`
    ipcrm `ipcs | egrep '0x808|0xdcb|0x101' | awk '{print "-M " $1}'`
    ipcrm `ipcs | egrep '0x808|0xdcb|0x101' | awk '{print "-Q " $1}'`

   osx:
    ipcrm `ipcs | egrep '0x808|0xdcb' | awk '{print "-s " $2}'`
   

yp-svipc's People

Contributors

frigaut avatar mdcb avatar paumard avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

frigaut paumard

yp-svipc's Issues

typeid & svipc

hello matthieu,
long time no see ;)
typeid is a reserved keyword in c++ so cannot compile svipc with gcc for instance ...
deserves a fix i guess ...
best
d.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.