Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

test_nproc.opt on Debian linux unstable, ocaml 3.12.1 #2

Open
zorglub421 opened this Issue Dec 30, 2011 · 4 comments

Comments

Projects
None yet
2 participants

root@vs:~/src/nproc-git# ./test_nproc.opt
[exception in f]
[err] Exception raised by Nproc task: Failure("raised from f")
OK
[exception in g]
[err] Error while handling result of Nproc task: exception Failure("raised from g")
OK
[unstack child]
GC stats in parent:
live_words: 2888042
GC stats in children:
Starting worker 0
Starting worker 1
live_words: 4856
live_words: 4856
live_words: 4856
live_words: 4856
OK
[lwt interface]
Fatal error: exception Unix.Unix_error(23, "fork", "")

this box is a deboostrap chroot of debian unstable in a debian stable "mother" host :

root@vs:~/src/nproc-git# dpkg -l | grep ocaml
ii libbatteries-ocaml-dev 1.4.1-1 Batteries included: OCaml development platform - development files
ii libbatteries-ocaml-doc 1.4.1-1 Batteries included - OCaml development platform - documentation
ii libcalendar-ocaml 2.03-1+b2 OCaml library providing operations over dates and times
ii libcalendar-ocaml-dev 2.03-1+b2 OCaml library providing operations over dates and times
ii libcalendar-ocaml-doc 2.03-1 OCaml library providing operations over dates and times
ii libcamomile-ocaml-data 0.8.3-2 Unicode data for OCaml
ii libcamomile-ocaml-dev 0.8.3-2+b1 Unicode library for OCaml
ii libcryptgps-ocaml-dev 0.2.1-7+b3 OCaml implementation of symmetric cryptographic algorithms: Blowfish, DES, 3DES
ii libcryptokit-ocaml 1.5-1 cryptographic algorithm library for OCaml - runtime
ii libcryptokit-ocaml-dev 1.5-1 cryptographic algorithm library for OCaml - development
ii libfindlib-ocaml 1.2.7+debian-1+b1 library for managing OCaml libraries (runtime)
ii libfindlib-ocaml-dev 1.2.7+debian-1+b1 library for managing OCaml libraries (development files)
ii liblwt-ocaml 2.3.1-1+b3 cooperative light-weight thread library for OCaml (runtime)
ii liblwt-ocaml-dev 2.3.1-1+b3 cooperative light-weight thread library for OCaml
ii liblwt-ocaml-doc 2.3.1-1 cooperative light-weight thread library (documentation)
ii liblwt-ssl-ocaml 2.3.1-1+b3 cooperative OpenSSL bindings for OCaml (runtime)
ii liblwt-ssl-ocaml-dev 2.3.1-1+b3 cooperative OpenSSL bindings for OCaml
ii libnethttpd-ocaml-dev 3.4.1-2+b1 OCaml application-level Internet libraries - HTTP daemon development libraries
ii libobrowser-ocaml-dev 1.1.1+dfsg-1+b5 O'Browser support libraries (development files)
ii libocamlnet-ocaml 3.4.1-2+b1 OCaml application-level Internet libraries - core runtime libraries
ii libocamlnet-ocaml-dev 3.4.1-2+b1 OCaml application-level Internet libraries - core development libraries
ii libocamlnet-ocaml-doc 3.4.1-2 OCaml application-level Internet libraries - documentation and examples
ii libpcre-ocaml 6.2.3-1 OCaml bindings for PCRE (runtime)
ii libpcre-ocaml-dev 6.2.3-1 OCaml bindings for PCRE (Perl Compatible Regular Expression)
ii libreact-ocaml 0.9.2-1+b2 functional reactive programming in OCaml (plugins)
ii libreact-ocaml-dev 0.9.2-1+b2 functional reactive programming in OCaml
ii libsqlite3-ocaml 1.6.1-1+b1 Embeddable SQL Database for OCaml Programs
ii libsqlite3-ocaml-dev 1.6.1-1+b1 Embeddable SQL Database for OCaml Programs
ii libssl-ocaml 0.4.6-1 OCaml bindings for OpenSSL (runtime)
ii libssl-ocaml-dev 0.4.6-1 OCaml bindings for OpenSSL
ii libtext-ocaml 0.5-1+b1 runtime libraries of OCaml-Text
ii libtext-ocaml-dev 0.5-1+b1 library for dealing with sequences of Unicode characters
ii libzip-ocaml 1.04-6+b3 OCaml compression libraries (runtime libraries)
ii libzip-ocaml-dev 1.04-6+b3 OCaml compression libraries (development files)
ii ocaml 3.12.1-2 ML language implementation with a class-based object system
ii ocaml-base 3.12.1-2 Runtime system for OCaml bytecode executables
ii ocaml-base-nox 3.12.1-2 Runtime system for OCaml bytecode executables (no X)
ii ocaml-batteries-included 1.4.1-1 Batteries included: OCaml development platform - metapackage
ii ocaml-compiler-libs 3.12.1-2 OCaml interpreter and standard libraries
ii ocaml-findlib 1.2.7+debian-1+b1 management tool for OCaml libraries
ii ocaml-interp 3.12.1-2 OCaml interactive interpreter and standard libraries
ii ocaml-nox 3.12.1-2 ML implementation with a class-based object system (no X)
ii ocamlduce 3.12.1.0-1 OCaml extended with XML types
ii ocamlduce-base 3.12.1.0-1 OCaml extended with XML types (runtime)

@ghost ghost assigned mjambon Dec 30, 2011

Owner

mjambon commented Jan 13, 2012

The error 23 that occurs during fork() is ENOMEM "Not enough space" (given by (Obj.magic 23 : Unix.error);;).

Let me know if you still see the problem or if it is explained by a quota issue (ulimit -a).

Hello Martin,

It's running fine since the last git commit some 10 days ago (here on the mac air with untuned and fairly low ulimit):

philou@air:~/src/ml/nproc-git$ ./test_nproc.opt
[exception in f]
[err] Exception raised by Nproc task: Failure("raised from f")
OK
[exception in g]
[err] Error while handling result of Nproc task: exception Failure("raised from g")
OK
[unstack child]
GC stats in parent:
live_words: 2831328
GC stats in children:
Starting worker 0
Starting worker 1
live_words: 4818
live_words: 4818
live_words: 4818
live_words: 4818
OK
[lwt interface]
OK
[stream interface]
total time: 3.159024s
OK
[stream interface with granularity=10]
total time: 10.153904s
OK

philou@air:~/src/ml/nproc-git$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 256
pipe size (512 bytes, -p) 1
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 266
virtual memory (kbytes, -v) unlimited

Regards.

Le 13 janv. 2012 à 22:58, Martin Jambon a écrit :

The error 23 that occurs during fork() is ENOMEM "Not enough space" (given by (Obj.magic 23 : Unix.error);;).

Let me know if you still see the problem or if it is explained by a quota issue (ulimit -a).


Reply to this email directly or view it on GitHub:
#2 (comment)

Philippe Strauss
http://www.philou.ch/

Owner

mjambon commented Jan 14, 2012

I was just wondering about the problem you witnessed on Debian, not the one on the Mac (issue #1) which appears to be resolved.

ah oui je l'avais ignorée celle-ci, passant plus de temps sous osx. elle est tjr présente, mais cette machine et une "fille" openvz avec 768MB de RAM allouée, de plus, j'ai l'install ocaml dans un chroot deboostrap dans cette fille. cela fait passablement de poupée russe.

root@vs:~/src/nproc-git# ./test_nproc.opt
[exception in f]
[err] Exception raised by Nproc task: Failure("raised from f")
OK
[exception in g]
[err] Error while handling result of Nproc task: exception Failure("raised from g")
OK
[unstack child]
GC stats in parent:
live_words: 2888044
GC stats in children:
Starting worker 0
Starting worker 1
live_words: 4858
live_words: 4858
live_words: 4858
live_words: 4858
OK
[lwt interface]
Fatal error: exception Unix.Unix_error(23, "fork", "")

root@vs:~/src/nproc-git# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 16382
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) unlimited
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited

j'ai essayé d'augmenter le max stack size à 128M, la taille de mém. lockée à 4096 k, cela ne change rien.
pipe size j'imagine que c'est la "profondeur" en mém par block de 512 bytes, je ne peux pas la modifier.

c'est une debian unstable dans ce chroot.

Salutations.

Le 13 janv. 2012 à 23:14, Philippe Strauss a écrit :

Hello Martin,

It's running fine since the last git commit some 10 days ago (here on the mac air with untuned and fairly low ulimit):

philou@air:~/src/ml/nproc-git$ ./test_nproc.opt
[exception in f]
[err] Exception raised by Nproc task: Failure("raised from f")
OK
[exception in g]
[err] Error while handling result of Nproc task: exception Failure("raised from g")
OK
[unstack child]
GC stats in parent:
live_words: 2831328
GC stats in children:
Starting worker 0
Starting worker 1
live_words: 4818
live_words: 4818
live_words: 4818
live_words: 4818
OK
[lwt interface]
OK
[stream interface]
total time: 3.159024s
OK
[stream interface with granularity=10]
total time: 10.153904s
OK

philou@air:~/src/ml/nproc-git$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 256
pipe size (512 bytes, -p) 1
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 266
virtual memory (kbytes, -v) unlimited

Regards.

Le 13 janv. 2012 à 22:58, Martin Jambon a écrit :

The error 23 that occurs during fork() is ENOMEM "Not enough space" (given by (Obj.magic 23 : Unix.error);;).

Let me know if you still see the problem or if it is explained by a quota issue (ulimit -a).


Reply to this email directly or view it on GitHub:
#2 (comment)

Philippe Strauss
http://www.philou.ch/

Philippe Strauss
http://www.philou.ch/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment