You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 1065 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Sizes in Gc.stat seems to be expressed in bytes rather than in words.
Here is the creation of 10 arrays containing 1000000 zeros.
Its size should be approximately 10 * 1000000 = 10 M words or 40 Mbytes on a
32-bit architecture.
But heap_words = 40525824
(and `top' says that the memory usage of the process is 40Mbytes).
[pc-bioinfo1] ~ % ocaml
Objective Caml version 3.04
Original bug ID: 1065
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Martin Jambon
Version: 3.04
OS: PC/Linux
Submission from: pc-bioinfo1.ibcp.fr (193.51.160.63)
Sizes in Gc.stat seems to be expressed in bytes rather than in words.
Here is the creation of 10 arrays containing 1000000 zeros.
Its size should be approximately 10 * 1000000 = 10 M words or 40 Mbytes on a
32-bit architecture.
But heap_words = 40525824
(and `top' says that the memory usage of the process is 40Mbytes).
[pc-bioinfo1] ~ % ocaml
Objective Caml version 3.04
let a = Array.make_matrix 10 1000000 0;;
val a : int array array =
[|[|0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0;
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; ...|];
...|]
Gc.print_stat stdout;;
minor_words: 172342
promoted_words: 34080
major_words: 10086991
minor_collections: 4
major_collections: 16
heap_words: 40525824
heap_chunks: 12
live_words: 10082352
live_blocks: 15699
free_words: 49037
free_blocks: 15
largest_free: 44435
fragments: 67
compactions: 0
The text was updated successfully, but these errors were encountered: