Hi Chet, Thank you for your reply. I try a very simple script as you can see, I don't think it need to check by valgrind. The RSS should not increase for running that script.
The OS used is OpenSUSE 64bit version 12.1 I don't have chance to check on MacOS or RHEL. -- Thuan On Wed, Jul 16, 2014 at 3:23 AM, Chet Ramey <chet.ra...@case.edu> wrote: > On 7/14/14, 12:46 AM, Tran Thuan wrote: > > > I wrote a simple loop as following: > > > > > > > > while true; do > > > > sleep 1 > > > > echo "hello" > > > > done > > > > > > > > But the RSS (resident set size) continue increase. (Check by ps command) > > > > Is it possible a bug of bash? Could you please help me check it? > > I can't reproduce this on MacOS X or RHEL 5 using bash-4.2 and bash-4.3. > You might try running your script using `valgrind' and seeing what that > tells you. > > Chet > > -- > ``The lyf so short, the craft so long to lerne.'' - Chaucer > ``Ars longa, vita brevis'' - Hippocrates > Chet Ramey, ITS, CWRU c...@case.edu > http://cnswww.cns.cwru.edu/~chet/ >