Pawel (privately) wrote:
Hi Jim,No, not quite. As I say, the reason that subsequent allocations cannot reuse space in the free chain is because of pattern of allocation. That is the main reason to use watson as an allocator. Hence you get a lot of accumulation in the free space chain. Now, it could be that option gives some relief, but the issue is really the allocation pattern. The way watson doles out address space is key to the resue of blocks that are already in the free space chain. Hence you should try: 1) Switch to watson without other MALLOCOPTS and obsrver the differences; 2) Add options singly to see their individual effect; 3) combine options; The key here is to make one change at a time of course. Have you done any of this yet? I have shown one stupid process that allocated almost 2 GB of memory (soon it crashed), but this is really exceptional.That is good. Our COB sessions (tSA) allocate a lot of memory on SSELECTs and free most of it immediately. I think that you can easily notice that sorting, not keys selections increases memory consumption.When you sort, you can either make one pass and accumulate the sort keys and primary key or you can accumulate the output at the same time. I think that SSELECT does the latter, hence you must store all referenced elements and need that much memory. As the keys and list grow the must be reallocated and the old smaller block is released. IF that smaller block is never big enough to satisfy a subsequent malloc, then it will sit in the free chain unused, but still require address space. Hence the option you are looking at MAY allow some of this to return to they system, but the address space is in system pages. Hence increasing the page size as mentioned in an earlier reply. may encourage better fits within the watson allocator, but using the standard allocator, may not help much anyway. Sure, but they are not causing you any problems per se. This isn't the root problem, but a symptom. Also, you must asses the free chain as a percentage of the allocation used. What looks like a large number may be a small percentage. Further, because of statistical aberrations, once rogue process could throw out your entire assessment. YEs, hence for large allocations, using the 64 page size may help. But there are systems pages, the malloc allocator and then the malloced piece. They all interact. So will MALLOCOPTION=disclaim give back (fully) unused pages to the OS? Will it happen only when there is out of physical memory?I have not looked at the precise description of this option, but the short description implies that it tries to give back pages as soon as nothing occupies them when free is called. Because the reallocs are relatively large, then this might give back pages to the system. Try it, but only once you have tried watson, then tried watson with the bigger page allocation; then try the combinations. Changing the page size may help, it may make things give up earlier. Only experimentation will show this. The settings for MALLOCOPT to change the page size for larger allocations was in my earlier posts in this thread. Only for the live system of course and they are not dangerous if they are pre-tested ;-). On your test system you should be willing to experiment after taking a backup and expecting that you will screw things up a few times before finding the right options. Perhaps a nudge is in order if you are in dire straights. Jim --~--~---------~--~----~------------~-------~--~----~ Please read the posting guidelines at: http://groups.google.com/group/jBASE/web/Posting%20Guidelines IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
To post, send email to [email protected]
|
- Re: jBASE 4.1.5.17 - does anyone face "out of ... Mike Preece
- Re: jBASE 4.1.5.17 - does anyone face "out... Pawel (privately)
- Re: jBASE 4.1.5.17 - does anyone face "... Pawel (privately)
- Re: jBASE 4.1.5.17 - does anyone face &... Jim Idle
- Re: jBASE 4.1.5.17 - does anyone face &... pat
- Re: jBASE 4.1.5.17 - does anyone f... Greg Cooper
- Re: jBASE 4.1.5.17 - does anyo... Pawel (privately)
- Re: jBASE 4.1.5.17 - does anyo... Jim Idle
- Re: jBASE 4.1.5.17 - does anyo... Pawel (privately)
- Re: jBASE 4.1.5.17 - does anyo... Jim Idle
- Re: jBASE 4.1.5.17 - does anyo... Pawel (privately)
- Re: jBASE 4.1.5.17 - does anyo... Jim Idle
- Re: jBASE 4.1.5.17 - does anyone face "... Jim Idle
- Re: jBASE 4.1.5.17 - does anyone face "out of memor... mike ryder
- Re: jBASE 4.1.5.17 - does anyone face "out of ... Pawel (privately)
- Re: jBASE 4.1.5.17 - does anyone face "out of ... Pawel (privately)
