[utils] fix ulimit settings

* use the correct memory segment
* add a limit on subprocess numbers

Warning: "ulimit -p" is sh (dash) syntax;
         bash uses "ulimit -u" to limit the nb of processes
[app/79] new demo
[app/79] python cleanup