diff options
Diffstat (limited to 'Documentation/technical/memory.txt')
-rw-r--r-- | Documentation/technical/memory.txt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Documentation/technical/memory.txt b/Documentation/technical/memory.txt index bb1c92fd..039694c3 100644 --- a/Documentation/technical/memory.txt +++ b/Documentation/technical/memory.txt @@ -8,12 +8,12 @@ memory-efficient. We strive to keep processes small to improve locality, allow the kernel to cache more files, and to be a good neighbor to other processes running on the machine. Taking advantage of -automatic reference counting (ARC) in Perl allows us +automatic reference counting (ARC) in Perl allows us to deterministically release memory back to the heap. We start with a simple data model with few circular references. This both eases human understanding and reduces -the likelyhood of bugs. +the likelihood of bugs. Knowing the relative sizes and quantities of our data structures, we limit the scope of allocations as much as @@ -48,3 +48,9 @@ In the future, our internal data model will be further flattened and simplified to reduce the overhead imposed by small objects. Large allocations may also be avoided by optionally using Inline::C. + +Finally, the mwrap-perl LD_PRELOAD wrapper was ported to Perl 5 +and enhanced to provide live memory usage tracking on 64-bit systems +with minimal performance impact on production traffic: + + git clone https://80x24.org/mwrap-perl.git |