Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14947
| Path | csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail |
|---|---|
| From | chen liu <chen.liu.opensource@gmail.com> |
| Newsgroups | gnu.bash.bug |
| Subject | Re: Memory continusely increase |
| Date | Mon, 24 Dec 2018 10:51:00 +0800 |
| Lines | 67 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.6234.1545620249.1284.bug-bash@gnu.org> (permalink) |
| References | <1545199834453-0.post@n7.nabble.com> <8ba9e82f-020a-3bf5-87c5-ce250f89e269@case.edu> |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| Content-Transfer-Encoding | quoted-printable |
| X-Trace | usenet.stanford.edu 1545620249 17403 208.118.235.17 (24 Dec 2018 02:57:29 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| Cc | bug-bash <Bug-bash@gnu.org> |
| To | chet.ramey@case.edu |
| Envelope-to | Bug-bash@gnu.org |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=EtYbtGiAyLR4wC4kkFWQAdWHTBVIIogOwoXSAZA+Q7Q=; b=WX3C5YjfJdGPtr/T2LNIH/26gbe9QeiJSDx8rNMIo5hpwnspgtphonEHbeosjXcyW7 dooOwNluwVqExmS5s6h8yAbCGLKwtiiHOzdSla5CnoJKBX17IKNNpZO8EsppZHhcRHmM JjP7J2T9DdtB4BmXtOg010Wo3KOf64QHO/5/b+uFe/QMK7ZxwjL8Fdg1Tb0ogxOtl1/e Vj7R4bFsqs8ADPT9Vie/eOX+meckFC81NA57w+M4jcoAN3kmQaXU/O0GDzfbfxNZ2bDR NISe/s1yeBF+ewVQX1iv02YPpeIfsKjWZVajlKesdMx6TQhctwKGIALjxWL95WyQHOkg 4svg== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=EtYbtGiAyLR4wC4kkFWQAdWHTBVIIogOwoXSAZA+Q7Q=; b=VZ3XlYZQJPP0Y4YJmPblnP/NQj1xmSaM8QtF0WVE3GutQ//Bl3PO2LDcejNkIOVTg/ rNKGk8294Dqy0l2pU1qpBhTv8n0F957yJ3lt+eG22Drmu+1uCiltOej1nWMapM94hPUJ yp+lXOytkBzD4kRHEqHXgHo7RzmgJEJ/12KbpYTdttC6jt86mvyxD9QLRiod0x0uFeGS S9b/lfpRVozUkDiF6AoZFxf/z2SfbrpZqANo57x0PM7RKz/gS6ctQG1y+jihCDxoIjE+ z6w8uwFjoDyJ8RpIzRwbqO9pYkt0YBUmAL9txQ9r6qRp+j1APWYC0JOl7AHeOmPd+CA2 hM9g== |
| X-Gm-Message-State | AA+aEWaw9rcfJoFHHlc+Z9kSM6B1u0zZxt9sCzHV2So05rqlWFwEiFWm vit5GjVFcwx28UHCVRpMyt18VIv4BOC8aToPEhM= |
| X-Google-Smtp-Source | AFSGD/VkBbpZYjuJCAuSh/yVgQLJdMcy3SSdG+zZWVh2i7k5PxvO+NReOruMesntl7oFRdAcqkcKnqloNZb8sHzOzC4= |
| X-Received | by 2002:a67:4c51:: with SMTP id z78mr3904842vsa.99.1545620233230; Sun, 23 Dec 2018 18:57:13 -0800 (PST) |
| In-Reply-To | <8ba9e82f-020a-3bf5-87c5-ce250f89e269@case.edu> |
| X-detected-operating-system | by eggs.gnu.org: Genre and OS details not recognized. |
| X-Received-From | 2607:f8b0:4864:20::e2a |
| X-BeenThere | bug-bash@gnu.org |
| X-Mailman-Version | 2.1.21 |
| Precedence | list |
| List-Id | Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org> |
| List-Unsubscribe | <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe> |
| List-Archive | <http://lists.gnu.org/archive/html/bug-bash/> |
| List-Post | <mailto:bug-bash@gnu.org> |
| List-Help | <mailto:bug-bash-request@gnu.org?subject=help> |
| List-Subscribe | <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe> |
| Xref | csiph.com gnu.bash.bug:14947 |
Show key headers only | View raw
Chet Ramey <chet.ramey@case.edu> 于2018年12月22日周六 上午12:51写道: > > On 12/19/18 1:10 AM, jake wrote: > > Hi all, > > > > I did a test about run a bash scriplt never quit,but met a memory usage > > issue that cause used memory continuous increase. > > This issue was present in bash-3.2.x, bash-4.0.x, bash-4.1.x, bash-4.2.x, > > bash-4.3.x. However, This issue was disappeared in bash-4.4.0, I can't trace > > which patch fixed the issue or which new feature was introduced in > > bash-4.4.0. > > > > Here is bash script: > > ------------------------------------------------------------------------------ > > #!/bin/bash > > > > logger "Started testing" > > while(true);do > > while (true); do > > ls > /dev/null > > done > > done > > What is the hard limit on the number of processes for a process started in > this environment? (The value of `ulimit -n'.) Hi Chet, Below is all of the values of the bash ulimit optionals, this issue present in this environment ---------------------------------------------------------------------- root@localhost:/root> cat ulimit.txt core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 516046 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 516046 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited --------------------------------------------------------------------------- But found change the -u optionals value through the ( ulimit -u 1024) will let this issue disapeared. Thanks, Chen. > > -- > ``The lyf so short, the craft so long to lerne.'' - Chaucer > ``Ars longa, vita brevis'' - Hippocrates > Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: Memory continusely increase chen liu <chen.liu.opensource@gmail.com> - 2018-12-24 10:51 +0800
csiph-web