<font size=3 face="Arial">AFAIK you can increase the pagepool size dynamically
but you cannot shrink it dynamically. &nbsp;To shrink it you must restart
the GPFS daemon. &nbsp; Also, could you please provide the actual pmap
commands you executed?</font><br><br><font size=2 face="sans-serif">Regards, The Spectrum Scale (GPFS) team<br><br>------------------------------------------------------------------------------------------------------------------<br>If you feel that your question can benefit other users of &nbsp;Spectrum
Scale (GPFS), then please post it to the public IBM developerWroks Forum
at </font><a href="https://www.ibm.com/developerworks/community/forums/html/forum?id=11111111-0000-0000-0000-000000000479"><font size=2 face="sans-serif">https://www.ibm.com/developerworks/community/forums/html/forum?id=11111111-0000-0000-0000-000000000479</font></a><font size=2 face="sans-serif">.
<br><br>If your query concerns a potential software error in Spectrum Scale (GPFS)
and you have an IBM software maintenance contract please contact &nbsp;1-800-237-5511
in the United States or your local IBM Service Center in other countries.
<br><br>The forum is informally monitored as time permits and should not be used
for priority messages to the Spectrum Scale (GPFS) team.</font><br><br><br><br><font size=1 color=#5f5f5f face="sans-serif">From: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">Aaron Knister &lt;aaron.s.knister@nasa.gov&gt;</font><br><font size=1 color=#5f5f5f face="sans-serif">To: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">&lt;gpfsug-discuss@spectrumscale.org&gt;</font><br><font size=1 color=#5f5f5f face="sans-serif">Date: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">02/22/2018 10:30 PM</font><br><font size=1 color=#5f5f5f face="sans-serif">Subject: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">Re: [gpfsug-discuss]
pagepool shrink doesn't release all memory</font><br><font size=1 color=#5f5f5f face="sans-serif">Sent by: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">gpfsug-discuss-bounces@spectrumscale.org</font><br><hr noshade><br><br><br><tt><font size=2>This is also interesting (although I don't know what
it really means). <br>Looking at pmap run against mmfsd I can see what happens after each step:<br><br># baseline<br>00007fffe4639000 &nbsp;59164K &nbsp; &nbsp; &nbsp;0K &nbsp; &nbsp; &nbsp;0K
&nbsp; &nbsp; &nbsp;0K &nbsp; &nbsp; &nbsp;0K ---p [anon]<br>00007fffd837e000 &nbsp;61960K &nbsp; &nbsp; &nbsp;0K &nbsp; &nbsp; &nbsp;0K
&nbsp; &nbsp; &nbsp;0K &nbsp; &nbsp; &nbsp;0K ---p [anon]<br>0000020000000000 1048576K 1048576K 1048576K 1048576K &nbsp; &nbsp; &nbsp;0K
rwxp [anon]<br>Total: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1613580K 1191020K 1189650K 1171836K
&nbsp; &nbsp; &nbsp;0K<br><br># tschpool 64G<br>00007fffe4639000 &nbsp;59164K &nbsp; &nbsp; &nbsp;0K &nbsp; &nbsp; &nbsp;0K
&nbsp; &nbsp; &nbsp;0K &nbsp; &nbsp; &nbsp;0K ---p [anon]<br>00007fffd837e000 &nbsp;61960K &nbsp; &nbsp; &nbsp;0K &nbsp; &nbsp; &nbsp;0K
&nbsp; &nbsp; &nbsp;0K &nbsp; &nbsp; &nbsp;0K ---p [anon]<br>0000020000000000 67108864K 67108864K 67108864K 67108864K &nbsp; &nbsp;
&nbsp;0K rwxp [anon]<br>Total: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 67706636K 67284108K 67282625K
67264920K &nbsp; &nbsp; &nbsp;0K<br><br># tschpool 1G<br>00007fffe4639000 &nbsp;59164K &nbsp; &nbsp; &nbsp;0K &nbsp; &nbsp; &nbsp;0K
&nbsp; &nbsp; &nbsp;0K &nbsp; &nbsp; &nbsp;0K ---p [anon]<br>00007fffd837e000 &nbsp;61960K &nbsp; &nbsp; &nbsp;0K &nbsp; &nbsp; &nbsp;0K
&nbsp; &nbsp; &nbsp;0K &nbsp; &nbsp; &nbsp;0K ---p [anon]<br>0000020001400000 139264K 139264K 139264K 139264K &nbsp; &nbsp; &nbsp;0K
rwxp [anon]<br>0000020fc9400000 897024K 897024K 897024K 897024K &nbsp; &nbsp; &nbsp;0K
rwxp [anon]<br>0000020009c00000 66052096K &nbsp; &nbsp; &nbsp;0K &nbsp; &nbsp; &nbsp;0K
&nbsp; &nbsp; &nbsp;0K &nbsp; &nbsp; &nbsp;0K rwxp [anon]<br>Total: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 67706636K 1223820K 1222451K 1204632K
&nbsp; &nbsp; &nbsp;0K<br><br>Even though mmfsd has that 64G chunk allocated there's none of it <br>*used*. I wonder why Linux seems to be accounting it as allocated.<br><br>-Aaron<br><br>On 2/22/18 10:17 PM, Aaron Knister wrote:<br>&gt; I've been exploring the idea for a while of writing a SLURM SPANK
plugin <br>&gt; to allow users to dynamically change the pagepool size on a node.
Every <br>&gt; now and then we have some users who would benefit significantly from
a <br>&gt; much larger pagepool on compute nodes but by default keep it on the
<br>&gt; smaller side to make as much physmem available as possible to batch
work.<br>&gt; <br>&gt; In testing, though, it seems as though reducing the pagepool doesn't
<br>&gt; quite release all of the memory. I don't really understand it because
<br>&gt; I've never before seen memory that was previously resident become
<br>&gt; un-resident but still maintain the virtual memory allocation.<br>&gt; <br>&gt; Here's what I mean. Let's take a node with 128G and a 1G pagepool.<br>&gt; <br>&gt; If I do the following to simulate what might happen as various jobs
<br>&gt; tweak the pagepool:<br>&gt; <br>&gt; - tschpool 64G<br>&gt; - tschpool 1G<br>&gt; - tschpool 32G<br>&gt; - tschpool 1G<br>&gt; - tschpool 32G<br>&gt; <br>&gt; I end up with this:<br>&gt; <br>&gt; mmfsd thinks there's 32G resident but 64G virt<br>&gt; # ps -o vsz,rss,comm -p 24397<br>&gt; &nbsp;&nbsp;&nbsp; VSZ&nbsp;&nbsp; RSS COMMAND<br>&gt; 67589400 33723236 mmfsd<br>&gt; <br>&gt; however, linux thinks there's ~100G used<br>&gt; <br>&gt; # free -g<br>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
total&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; used&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
free&nbsp;&nbsp;&nbsp;&nbsp; shared&nbsp;&nbsp;&nbsp; buffers&nbsp;&nbsp;&nbsp;&nbsp;
cached<br>&gt; Mem:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 125&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
100&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 25&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0<br>&gt; -/+ buffers/cache:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
98&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 26<br>&gt; Swap:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
7<br>&gt; <br>&gt; I can jump back and forth between 1G and 32G *after* allocating 64G
<br>&gt; pagepool and the overall amount of memory in use doesn't balloon but
I <br>&gt; can't seem to shed that original 64G.<br>&gt; <br>&gt; I don't understand what's going on... :) Any ideas? This is with Scale
<br>&gt; 4.2.3.6.<br>&gt; <br>&gt; -Aaron<br>&gt; <br><br>-- <br>Aaron Knister<br>NASA Center for Climate Simulation (Code 606.2)<br>Goddard Space Flight Center<br>(301) 286-2776<br>_______________________________________________<br>gpfsug-discuss mailing list<br>gpfsug-discuss at spectrumscale.org<br></font></tt><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listinfo_gpfsug-2Ddiscuss&amp;d=DwIGaQ&amp;c=jf_iaSHvJObTbx-siA1ZOg&amp;r=IbxtjdkPAM2Sbon4Lbbi4w&amp;m=OrZQeEmI6chBdguG-h4YPHsxXZ4gTU3CtIuN4e3ijdY&amp;s=hvVIRG5kB1zom2Iql2_TOagchsgl99juKiZfJt5S1tM&amp;e="><tt><font size=2>https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listinfo_gpfsug-2Ddiscuss&amp;d=DwIGaQ&amp;c=jf_iaSHvJObTbx-siA1ZOg&amp;r=IbxtjdkPAM2Sbon4Lbbi4w&amp;m=OrZQeEmI6chBdguG-h4YPHsxXZ4gTU3CtIuN4e3ijdY&amp;s=hvVIRG5kB1zom2Iql2_TOagchsgl99juKiZfJt5S1tM&amp;e=</font></tt></a><tt><font size=2><br><br></font></tt><br><br><BR>