Thread View: news.software.nntp
2 messages
2 total messages
Started by Alex Bligh
Fri, 29 Aug 1997 00:00
Leaking memory - Inn1.5.1, Solaris, MMAP
Author: Alex Bligh
Date: Fri, 29 Aug 1997 00:00
Date: Fri, 29 Aug 1997 00:00
166 lines
6542 bytes
6542 bytes
I'm running innd 1.5.1 with Joe Greco's timer patches, and the history caching patches with a 256k entry cache (4 times the default); MMAP is turned on for both active and dbz. Thisi s running on Solaris 2.5.1 on 2 very similar machines with hardware RAID, plenty of IO bandwidth etc. etc. One runs like a dream with 2Gb of RAM. These are peering machine, no readers, running with -L with no crosspost. The other has 512Kb of RAM in and does a good impression of a dog. Investigation shows the slow box spends most of its time in one call (thanks for some great timer patches, Joe), which is the fdopen within artwrite. This appears to be because of shortage of memory. Here's some stats from the fast machine (vmstat 1 100): procs memory page disk faults cpu r b w swap free re mf pi po fr de sr f0 s0 s6 s1 in sy cs us sy id 1 1 0 2651608 954216 0 0 8 0 0 0 0 0 0 0 116 474 1990 349 8 54 38 0 0 0 2651608 954112 0 0 0 0 0 0 0 0 0 0 36 392 1370 329 8 56 36 1 0 0 2651608 954024 0 1 16 0 0 0 0 0 0 0 48 394 1727 355 8 58 34 1 0 0 2651608 953920 0 0 16 0 0 0 0 0 0 0 53 364 1484 326 9 56 35 1 0 0 2651608 953776 0 0 0 0 0 0 0 0 0 0 20 350 1391 238 4 52 44 1 0 0 2651608 953776 0 0 0 0 0 0 0 0 0 0 49 372 1765 270 3 56 40 1 0 0 2651608 953776 0 0 0 0 0 0 0 0 0 0 20 317 1993 191 5 51 44 1 0 0 2651608 953776 0 0 0 0 0 0 0 0 0 0 20 320 1426 193 0 50 49 1 0 0 2651608 953776 0 0 0 0 0 0 0 0 0 0 22 277 930 174 1 49 50 0 0 0 2651608 953776 0 0 0 0 0 0 0 0 0 0 22 281 946 157 2 50 48 1 0 0 2651608 953776 0 0 0 0 0 0 0 0 0 0 37 298 937 157 1 50 48 1 0 0 2651608 953776 0 0 0 0 0 0 0 0 0 0 22 296 1076 188 0 52 48 ... and a day later bash# vmstat 1 100 procs memory page disk faults cpu r b w swap free re mf pi po fr de sr f0 s0 s6 s1 in sy cs us sy id 0 0 0 2560 1048 0 16 40 4 4 0 0 0 0 0 52 402 258 330 17 32 51 1 0 0 2649664 538648 0 2 0 0 0 0 0 0 0 0 30 436 4157 465 14 52 33 0 0 0 2649664 538624 0 0 0 0 0 0 0 0 4 0 152 652 4858 447 13 22 65 1 1 0 2649664 538608 0 0 0 0 0 0 0 0 5 0 321 951 4641 383 19 43 38 0 1 0 2649664 538424 0 0 0 0 0 0 0 0 26 0 736 1388 4377 481 11 35 54 0 0 0 2649664 538272 0 0 16 0 0 0 0 0 0 0 28 427 4421 517 18 16 66 0 0 0 2649664 538272 0 0 0 0 0 0 0 0 0 0 0 290 3532 331 10 4 86 1 0 0 2649664 538264 0 0 0 0 0 0 0 0 0 0 26 618 4927 430 19 39 42 1 0 0 2649664 538104 0 0 24 0 0 0 0 0 0 0 41 631 5301 540 20 49 32 0 0 0 2649664 537992 0 0 0 0 0 0 0 0 0 0 4 434 5240 472 4 8 87 0 0 0 2649664 537992 0 0 0 0 0 0 0 0 0 0 0 336 4610 368 8 3 88 0 1 0 2649664 537992 0 0 0 0 0 0 0 0 0 0 17 405 3309 399 12 30 58 1 0 0 2649664 537896 0 0 0 0 0 0 0 0 0 0 53 527 3745 436 12 48 40 0 0 0 2649664 537816 0 0 0 0 0 0 0 0 0 0 0 299 3541 347 16 6 78 0 0 0 2649664 537816 0 0 0 0 0 0 0 0 0 0 0 426 4029 342 28 8 64 That's a pretty serious memory leak (half a Gb a day). If I kill innd and restart it, I don't get my memory back. Here's what happens: procs memory page disk faults cpu r b w swap free re mf pi po fr de sr f0 s0 s6 s1 in sy cs us sy id 0 0 0 2670296 622984 0 32 0 0 0 0 0 0 0 0 33 799 5928 649 13 33 54 1 0 0 2670096 622512 0 10 8 0 0 0 0 0 0 0 30 605 5691 611 6 40 54 0 1 0 2670072 622392 0 4 0 0 0 0 0 0 5 0 433 991 1741 352 4 56 40 0 2 0 2670064 622368 0 0 0 0 0 0 0 0 34 0 304 862 3147 512 3 16 81 0 0 0 2670032 622288 0 9 0 0 0 0 0 0 0 0 292 854 4260 556 10 43 48 1 0 0 2670000 622072 0 9 0 0 0 0 0 0 0 0 31 494 4001 501 8 46 46 0 0 0 2669968 622024 0 4 0 0 0 0 0 0 0 0 15 433 3146 516 4 15 81 0 0 0 2669968 622024 0 0 0 0 0 0 0 0 0 0 2 313 2253 405 2 4 94 Now OK I got 100M or so back, but nothing like what I should have free. The machine is doing nothing but innd and innfeed neither of which ever grow larger than 100Mb each (normally about 60Mb each). No other processes over a couple of Mb. So the question is where is the memory going? Is Solaris leaking it? Is it being used up by fs buffers that would be freed if I was getting short of memory? Here's what the slow machine looks like: procs memory page disk faults cpu r b w swap free re mf pi po fr de sr f0 s0 s1 -- in sy cs us sy id 0 1 0 1848696 9152 2 8 120 32 32 0 0 0 0 27 0 154 146 108 3 60 37 2 0 0 1848696 8952 5 14 176 40 40 0 0 0 0 37 0 187 241 105 6 61 33 0 0 0 1848696 8880 4 2 56 72 72 0 0 0 0 28 0 242 121 105 5 74 21 3 0 0 1848696 8856 6 5 96 392 392 0 0 0 1 70 0 235 321 136 11 60 29 2 0 0 1848696 9000 9 6 72 64 64 0 0 0 0 30 0 222 184 121 6 82 12 0 1 0 1848696 8760 3 22 376 72 72 0 0 0 0 71 0 212 317 218 3 34 63 2 0 0 1848696 8440 9 21 248 56 56 0 0 0 0 45 0 228 159 131 4 62 34 0 1 0 1848696 8088 6 13 336 80 96 0 3 0 2 69 0 317 513 261 9 33 58 2 0 0 1848832 7992 4 3 64 376 432 0 9 0 3 69 0 315 119 142 4 79 17 0 2 0 1848832 8336 4 6 128 1528 1520 0 0 0 7 260 0 451 180 188 2 48 50 2 1 0 1848808 9632 10 10 88 288 288 0 0 0 2 107 0 322 136 159 6 54 40 0 1 0 1848736 9616 3 11 240 288 288 0 0 0 36 499 0 716 163 179 6 15 79 As you can see, this machine is not a happy bunny. I can only conclude something is leaking memory somewhere. But apparently not innd. Any ideas? Alex Bligh Xara Networks
Re: Leaking memory - Inn1.5.1, Solaris, MMAP
Author: J. Porter Clark
Date: Fri, 29 Aug 1997 00:00
Date: Fri, 29 Aug 1997 00:00
21 lines
1435 bytes
1435 bytes
Alex Bligh <ab@globalnet.co.uk> writes: >I'm running innd 1.5.1 with Joe Greco's timer patches, and the >history caching patches with a 256k entry cache (4 times >the default); MMAP is turned on for both active and dbz. >Thisi s running on Solaris 2.5.1 on 2 very similar machines >with hardware RAID, plenty of IO bandwidth etc. etc. One >runs like a dream with 2Gb of RAM. These are peering >machine, no readers, running with -L with no crosspost. >The other has 512Kb of RAM in and does a good impression >of a dog. If you're using Clayton O'Neill's history cache patch, it does have a memory leak, as Clayton has himself pointed out. -- J. Porter Clark jpc@drum.msfc.nasa.gov NASA/MSFC Flight Data Systems Branch
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads