;;--------------------------------------
;;--------------------------------------
;; one day of runtime
;; RSS 1100MB
;;--------------------------------------
;;--------------------------------------
(getenv "MALLOC_ARENA_MAX")
"2"
;; buffers ~= 60MB
(let ((size 0))
(dolist (buffer (buffer-list) size)
(setq size (+ size (buffer-size buffer)))))
60300462
;; sums to ~100MB if I'm reading it right?
(garbage-collect)
((conses 16 1143686 1675416) (symbols 48 32466 160) (strings 32 241966 542675) (string-bytes 1 5872840) (vectors 16 116994) (vector-slots 8 8396419 357942) (floats 8 1705 7024) (intervals 56 27139 10678) (buffers 992 53))
;; /proc/$PID/smaps heap
56395d707000-56399b330000 rw-p 00000000 00:00 0 [heap]
Size: 1011876 kB
KernelPageSize: 4 kB
MMUPageSize: 4 kB
Rss: 1010948 kB
Pss: 1010948 kB
Shared_Clean: 0 kB
Shared_Dirty: 0 kB
Private_Clean: 0 kB
Private_Dirty: 1010948 kB
Referenced: 1007016 kB
Anonymous: 1010948 kB
LazyFree: 0 kB
AnonHugePages: 0 kB
ShmemPmdMapped: 0 kB
FilePmdMapped: 0 kB
Shared_Hugetlb: 0 kB
Private_Hugetlb: 0 kB
Swap: 0 kB
SwapPss: 0 kB
Locked: 0 kB
THPeligible: 0
ProtectionKey: 0
;; malloc-info
;;--------------------------------------
;;--------------------------------------
;; ~3 hours later.
;; growth slowed after the previous (garbage-collect)
;; RSS 1140MB
;;--------------------------------------
;;--------------------------------------
(memory-limit) ;; virtual memory, not RSS
1429620
(message "%f" gc-cons-threshold)
"800000.000000"
(message "%f" gc-cons-percentage)
"0.100000"
(emacs-uptime)
"1 day, 4 hours, 50 minutes, 30 seconds"
(message "%f" gcs-done)
"708.000000"
(message "%f" gc-elapsed)
"201.724018"
(message "%s" memory-full)
"nil"
(memory-use-counts)
(224118465 575286 217714299 65607 946347937 563190 26430775)
(memory-usage)
((conses 16 1199504 2511807) (symbols 48 32742 159) (strings 32 246671 575263) (string-bytes 1 5992063) (vectors 16 118364) (vector-slots 8 8412872 474129) (floats 8 1771 10028) (intervals 56 29873 12035) (buffers 992 60))
=> 18.3MB (+ 38.3MB dead) in conses
1.50MB (+ 7.45kB dead) in symbols
7.53MB (+ 17.6MB dead) in strings
5.71MB in string-bytes
1.81MB in vectors
64.2MB (+ 3.62MB dead) in vector-slots
13.8kB (+ 78.3kB dead) in floats
1.60MB (+ 658kB dead) in intervals
58.1kB in buffers
Total in lisp objects: 161MB (live 101MB, dead 60.2MB)
Buffer ralloc memory usage:
60 buffers
64.4MB total ( 956kB in gaps)
Size Gap Name
47795241 745530 *censored*
4681196 29261 *censored*
4543324 25017 *censored*
4478601 28398 *censored*
862373 622 *censored*
859981 4898 *censored*
859617 3696 *censored*
859355 4131 *censored*
859131 4009 *censored*
471538 6609 *censored*
60099 6451 *censored*
20589 1312 *censored*
19452 2129 *censored*
17776 1746 *censored*
16877 217 *censored*
16484 1447 *censored*
13488 56 *censored*
13212 1810 *censored*
12747 2081 *censored*
12640 2098 *censored*
12478 900 *censored*
12130 453 *censored*
10745 10186 *censored*
10703 2082 *censored*
9965 474 *censored*
9828 1075 *censored*
8000 226 *censored*
5117 1396 *censored*
4282 1891 *censored*
2546 1544 *censored*
1630 675 *censored*
1479 591 *censored*
1228 918 *censored*
883 1280 *censored*
679 1574 *censored*
678 5483 *censored*
513 27194 *censored*
299 1731 *censored*
232 3839 *censored*
131 1985 *censored*
97 1935 *censored*
92 1979 *censored*
72 1999 *censored*
69 1999 *censored*
69 4009 *censored*
67 1999 *censored*
64 1985 *censored*
62 6034 *censored*
62 1999 *censored*
61 1960 *censored*
28 4030 *censored*
27 1999 *censored*
0 2026 *censored*
0 20 *censored*
0 2065 *censored*
0 2072 *censored*
0 20 *censored*
0 20 *censored*
0 2059 *censored*
0 2037 *censored*
;;--------------------------------------
;;--------------------------------------
;; 3 days later
;; RSS was steady at 1150MB
;; leaped to 2.3GB very suddenly
;;
;; RSS 2311M
;;--------------------------------------
;;--------------------------------------
;; ~182MB
(let ((size 0))
(dolist (buffer (buffer-list) size)
(setq size (+ size (buffer-size buffer)))))
182903045
;; sums to ~142MB if I'm reading it right?
(garbage-collect)
((conses 16 2081486 2630206) (symbols 48 61019 79) (strings 32 353371 288980) (string-bytes 1 13294206) (vectors 16 144742) (vector-slots 8 9503757 592939) (floats 8 2373 8320) (intervals 56 46660 10912) (buffers 992 82))
(reduce '+ (cl-loop for thing in (garbage-collect)
collect (* (nth 1 thing) (nth 2 thing))))
142115406
;; /proc/$PID/smaps heap
56395d707000-5639e0d43000 rw-p 00000000 00:00 0 [heap]
Size: 2152688 kB
KernelPageSize: 4 kB
MMUPageSize: 4 kB
Rss: 2152036 kB
Pss: 2152036 kB
Shared_Clean: 0 kB
Shared_Dirty: 0 kB
Private_Clean: 0 kB
Private_Dirty: 2152036 kB
Referenced: 2146588 kB
Anonymous: 2152036 kB
LazyFree: 0 kB
AnonHugePages: 0 kB
ShmemPmdMapped: 0 kB
FilePmdMapped: 0 kB
Shared_Hugetlb: 0 kB
Private_Hugetlb: 0 kB
Swap: 0 kB
SwapPss: 0 kB
Locked: 0 kB
THPeligible: 0
ProtectionKey: 0
;; malloc-info
(malloc-info)
(memory-limit) ;; virtual memory, not RSS
2630768
(message "%f" gc-cons-threshold)
"800000.000000"
(message "%f" gc-cons-percentage)
"0.100000"
(emacs-uptime)
"4 days, 4 hours, 5 minutes, 3 seconds"
(message "%f" gcs-done)
"2140.000000"
(message "%f" gc-elapsed)
"760.624580"
(message "%s" memory-full)
"nil"
;; I belive this is cumulative, not current?
(memory-use-counts)
(989044259 2763760 754240919 143568 2633617972 2535567 76512576)
(reduce '+ (memory-use-counts))
4509544031
(memory-usage)
((conses 16 2081326 3094498) (symbols 48 61019 79) (strings 32 353291 494869) (string-bytes 1 13286757) (vectors 16 144725) (vector-slots 8 9503378 623467) (floats 8 2373 8320) (intervals 56 46640 11652) (buffers 992 82))
=> 31.8MB (+ 47.2MB dead) in conses
2.79MB (+ 3.70kB dead) in symbols
10.8MB (+ 15.1MB dead) in strings
12.7MB in string-bytes
2.21MB in vectors
72.5MB (+ 4.76MB dead) in vector-slots
18.5kB (+ 65.0kB dead) in floats
2.49MB (+ 637kB dead) in intervals
79.4kB in buffers
Total in lisp objects: 203MB (live 135MB, dead 67.8MB)
Buffer ralloc memory usage:
82 buffers
176MB total (2.04MB in gaps)
Size Gap Name
91928037 1241610 *censored*
27233492 123915 *censored*
16165441 173855 *censored*
15789683 66347 *censored*
15688792 205051 *censored*
3040510 1437 *censored*
3030476 17503 *censored*
3027663 15314 *censored*
3027493 16032 *censored*
3026818 15601 *censored*
211934 5198 *censored*
87685 23923 *censored*
57762 2629 *censored*
52780 677 *censored*
35991 2269 *censored*
25403 1824 *censored*
18008 1514 *censored*
16930 64 *censored*
16877 217 *censored*
16484 1447 *censored*
14232 14654 *censored*
14192 605 *censored*
13715 1130 *censored*
13575 1689 *censored*
13343 1377 *censored*
13198 1540 *censored*
13178 1598 *censored*
12747 2081 *censored*
10883 1902 *censored*
10271 632 *censored*
6402 44449 *censored*
5127 1386 *censored*
5005 1156 *censored*
4282 1891 *censored*
3840 2313 *censored*
3409 16717 *censored*
3409 16717 *censored*
2872 1186 *censored*
2541 1511 *censored*
2067 2011 *censored*
1630 675 *censored*
1626 444 *censored*
1490 679 *censored*
1413 26294 *censored*
1159 4937 *censored*
962 1063 *censored*
678 1574 *censored*
562 2297 *censored*
324 2008 *censored*
324 2008 *censored*
151 1967 *censored*
137 1887 *censored*
133 1983 *censored*
97 1935 *censored*
78 3998 *censored*
72 1999 *censored*
71 3985 *censored*
69 1999 *censored*
67 1999 *censored*
64 1985 *censored*
62 1999 *censored*
61 6035 *censored*
49 2008 *censored*
33 2038 *censored*
31 4040 *censored*
27 1999 *censored*
25 1999 *censored*
25 1999 *censored*
25 1999 *censored*
22 1999 *censored*
20 0 *censored*
16 2021 *censored*
16 4 *censored*
0 2026 *censored*
0 20 *censored*
0 5026 *censored*
0 2072 *censored*
0 20 *censored*
0 20 *censored*
0 2059 *censored*
0 20 *censored*
0 20 *censored*
;;--------------------------------------
;;--------------------------------------
;; 1 day later again
;; growing like the wind, 1MB/s
;;
;; RSS 4312M
;;--------------------------------------
;;--------------------------------------
;; ~225MB
(let ((size 0))
(dolist (buffer (buffer-list) size)
(setq size (+ size (buffer-size buffer)))))
225174048
(garbage-collect)
((conses 16 2290361 3757583) (symbols 48 61052 224) (strings 32 365530 766249) (string-bytes 1 13649806) (vectors 16 149038) (vector-slots 8 9550235 896010) (floats 8 2736 26321) (intervals 56 58848 21141) (buffers 992 86))
;; ~147MB live (after garbage collection)
(reduce '+ (cl-loop for thing in (garbage-collect)
collect (* (nth 1 thing) (nth 2 thing))))
147106906
;; /proc/$PID/smaps heap
56395d707000-563a5bc1d000 rw-p 00000000 00:00 0 [heap]
Size: 4166744 kB
KernelPageSize: 4 kB
MMUPageSize: 4 kB
Rss: 4166044 kB
Pss: 4166044 kB
Shared_Clean: 0 kB
Shared_Dirty: 0 kB
Private_Clean: 0 kB
Private_Dirty: 4166044 kB
Referenced: 4134232 kB
Anonymous: 4166044 kB
LazyFree: 0 kB
AnonHugePages: 0 kB
ShmemPmdMapped: 0 kB
FilePmdMapped: 0 kB
Shared_Hugetlb: 0 kB
Private_Hugetlb: 0 kB
Swap: 0 kB
SwapPss: 0 kB
Locked: 0 kB
THPeligible: 0
ProtectionKey: 0
;; malloc-info
(malloc-info)
(memory-limit) ;; virtual memory, not RSS
4677624
(message "%f" gc-cons-threshold)
"800000.000000"
(message "%f" gc-cons-percentage)
"0.100000"
(emacs-uptime)
"5 days, 0 hours, 46 minutes, 29 seconds"
(message "%f" gcs-done)
"2657.000000"
(message "%f" gc-elapsed)
"1341.540397"
(message "%s" memory-full)
"nil"
;; I belive this is cumulative, not current?
(memory-use-counts)
(1398270427 3851415 1045105421 157292 3270076512 5143679 98392626)
(reduce '+ (memory-use-counts))
5821401641
(memory-usage)
((conses 16 2289028 2965688) (symbols 48 61052 224) (strings 32 365599 325391) (string-bytes 1 13703731) (vectors 16 149065) (vector-slots 8 9550863 851947) (floats 8 2730 26079) (intervals 56 58713 19748) (buffers 992 85))
=> 34.9MB (+ 45.3MB dead) in conses
2.79MB (+ 10.5kB dead) in symbols
11.2MB (+ 9.93MB dead) in strings
13.1MB in string-bytes
2.27MB in vectors
72.9MB (+ 6.50MB dead) in vector-slots
21.3kB (+ 204kB dead) in floats
3.14MB (+ 1.05MB dead) in intervals
82.3kB in buffers
Total in lisp objects: 203MB (live 140MB, dead 62.9MB)
Buffer ralloc memory usage:
85 buffers
217MB total (1.92MB in gaps)
Size Gap Name
109928037 579908 *censored*
39191207 550862 *censored*
19545565 160987 *censored*
19080121 44347 *censored*
18974731 195256 *censored*
3671147 18971 *censored*
3658659 38739 *censored*
3655447 35925 *censored*
3654903 37130 *censored*
3654093 36607 *censored*
211934 5198 *censored*
57762 2629 *censored*
56490 55118 *censored*
52780 677 *censored*
35991 2269 *censored*
27943 769 *censored*
27793 3542 *censored*
27516 79 *censored*
26663 2011 *censored*
25403 1824 *censored*
18464 944 *censored*
18189 1583 *censored*
18008 1514 *censored*
16877 217 *censored*
16484 1447 *censored*
13855 921 *censored*
13382 687 *censored*
13198 1540 *censored*
12747 2081 *censored*
11856 929 *censored*
10271 632 *censored*
5127 1386 *censored*
4282 1891 *censored*
3819 2334 *censored*
3409 16717 *censored*
3409 16717 *censored*
3246 12860 *censored*
2872 1186 *censored*
2541 1511 *censored*
2232 1846 *censored*
1739 331 *censored*
1737 334 *censored*
1630 675 *censored*
1490 679 *censored*
1159 4937 *censored*
962 1063 *censored*
680 5296 *censored*
562 2297 *censored*
528 5633 *censored*
324 2008 *censored*
324 2008 *censored*
310 27397 *censored*
167 1949 *censored*
151 1967 *censored*
137 1887 *censored*
135 1890 *censored*
97 1935 *censored*
78 3998 *censored*
72 1999 *censored*
69 1999 *censored*
67 1999 *censored*
64 1985 *censored*
62 6034 *censored*
62 1999 *censored*
49 2008 *censored*
31 4040 *censored*
27 1999 *censored*
25 1999 *censored*
25 1999 *censored*
25 1999 *censored*
23 4033 *censored*
22 1999 *censored*
20 0 *censored*
16 2021 *censored*
16 4 *censored*
0 2026 *censored*
0 20 *censored*
0 5026 *censored*
0 2072 *censored*
0 20 *censored*
0 20 *censored*
0 2059 *censored*
0 20 *censored*
0 20 *censored*
0 50851 *censored*