zsh-workers
 help / color / mirror / code / Atom feed
From: Alexandre Duret-Lutz <duret_g@lrde.epita.fr>
To: Peter Stephenson <pws@csr.com>
Cc: zsh-workers@sunsite.dk (Zsh hackers list), Akim Demaille <akim@epita.fr>
Subject: Re: 4.0.1-pre-1
Date: 06 Mar 2001 15:24:48 +0100	[thread overview]
Message-ID: <mvbr90bgekv.fsf@phobos.lrde.epita.fr> (raw)
In-Reply-To: <Tc0a8890c521fed29d0@mailsweeper01.cambridgesiliconradio.com>

>>> "Peter" == Peter Stephenson <pws@csr.com> writes:

 >> I don't know if this can be considered as an `outstanding bug'
 >> but I haven't seen any mention of zsh-users/3574 in this thread.
 >> 
 >> I've tried to run that script (testsuite) with Zsh: it takes a
 >> *while* to start (i.e., to parse, I guess), acquires all the
 >> memory, most of the swap, brings the machine to its knees, and
 >> eventually run script as would other shells.  Althought it
 >> actually works, this behavior is quite uncomfortable :)  
 >> Any idea?

 Peter> I've had other problems, including `\c' not being
 Peter> interpreted by echo, which is actually deliberate for
 Peter> `emulate sh', and lots of tests failing, but there's
 Peter> something wrong with setting up here since a lot of
 Peter> tests fail anyway.  The errors include usage messages
 Peter> from grep and egrep, and errors from perl, so I don't
 Peter> think I'm going to be going very far as things stand at
 Peter> the moment.  However, zsh does produce more errors.  I
 Peter> haven't seen memory problems, though.  Maybe I'll try at
 Peter> home.

I don't see what you describe, pass the start the testsuite runs
fine (here).  I have done some more experiments with a fresh Zsh
from today's CVS, compiled with profiling support (although I now
believe it's just a memory consumption problem).

The script run (i.e. the testsuite) as weel as the gprof output
are available here: http://www.epita.fr/~duret_g/zsh-users-3574.tgz

Note that I have modified the testsuite so that it exits right
before the first test (in order to profile only the startup),
display memory usage on exit, and don't require autoconf (grep for
`ADL--' in the file to see the changed points).  The output is
as follow:

~/projs/autoconf-2.49c/tests % zsh testsuite                          14:23 #63
====================================
Testing suite for GNU Autoconf 2.49c
====================================

Some tests might be skipped if you don't have the software which the
macros check (e.g., a Fortran compiler).


Executables (autoheader, autoupdate...).

adl       6648 54.6 85.1 199924 107900 pts/4 S    14:23   0:13 zsh testsuite
adl       6688  0.0  0.3  1320  472 pts/4    S    14:24   0:00 grep testsuite
             total       used       free     shared    buffers     cached
Mem:        126732     124396       2336          0        424      10296
-/+ buffers/cache:     113676      13056
Swap:       244392     123120     121272
~/projs/autoconf-2.49c/tests % free                                   14:24 #64
             total       used       free     shared    buffers     cached
Mem:        126732      19308     107424          0        440      11984
-/+ buffers/cache:       6884     119848
Swap:       244392      37244     207148
~/projs/autoconf-2.49c/tests % ls -l testsuite                        14:24 #65
-rwxr-xr-x    1 adl      lrde       673886 Mar  6 14:23 testsuite*


See how much memory Zsh does acquire.  Actually it takes a
dozen of seconds to run here (not so much) because I have 100Mb
free.  It usually runs in 3-4min in normal conditions (when I have
X, emacs, netscape, etc. loaded).

For what it's worth, here is the head of gprof output:

  %   cumulative   self              self     total
 time   seconds   seconds    calls  ms/call  ms/call  name
 70.02      3.06     3.06   101532     0.03     0.03  zhalloc
  6.41      3.34     0.28    52966     0.01     0.01  ecstrcode
  5.26      3.57     0.23     4101     0.06     0.06  hrealloc
  2.97      3.70     0.13    23756     0.01     0.01  shingetline
  2.06      3.79     0.09    52489     0.00     0.04  gettokstr
  1.60      3.86     0.07   771871     0.00     0.00  ingetc
  1.37      3.92     0.06    93615     0.00     0.02  gettok
  1.14      3.97     0.05   485929     0.00     0.00  add
  1.14      4.02     0.05   105533     0.00     0.00  has_token
  0.69      4.05     0.03       29     1.03    47.01  gettext2
  0.46      4.07     0.02   121251     0.00     0.00  nohw
  0.46      4.09     0.02    93615     0.00     0.03  yylex
  0.46      4.11     0.02    89908     0.00     0.00  inungetc

The full output is in the aforementioned archive.
-- 
Alexandre Duret-Lutz


  reply	other threads:[~2001-03-06 14:18 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-14 12:35 4.0.1-pre-1 Peter Stephenson
2001-02-14 12:55 ` 4.0.1-pre-1 Andrej Borsenkow
2001-02-14 17:32 ` 4.0.1-pre-1 Bart Schaefer
2001-02-14 17:50   ` PATCH: 4.0.1-pre-1 Peter Stephenson
2001-02-17  0:53   ` 4.0.1-pre-1 Peter Stephenson
2001-02-18  1:43     ` 4.0.1-pre-1 Bart Schaefer
2001-02-19  6:15       ` 4.0.1-pre-1 Andrej Borsenkow
2001-02-19 22:00         ` exported functions (was Re: 4.0.1-pre-1) Oliver Kiddle
2001-03-06  7:57   ` 4.0.1-pre-1 Andrej Borsenkow
2001-02-15 14:21 ` `make check' error [ Re: 4.0.1-pre-1 ] Fletch
2001-03-06  8:44 ` 4.0.1-pre-1 Alexandre Duret-Lutz
2001-03-06 10:31   ` 4.0.1-pre-1 Peter Stephenson
2001-03-06 14:24     ` Alexandre Duret-Lutz [this message]
2001-02-14 13:43 4.0.1-pre-1 Sven Wischnowsky
2001-02-15  6:30 ` 4.0.1-pre-1 Andrej Borsenkow
2001-02-16 14:56 4.0.1-pre-1 Sven Wischnowsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=mvbr90bgekv.fsf@phobos.lrde.epita.fr \
    --to=duret_g@lrde.epita.fr \
    --cc=akim@epita.fr \
    --cc=pws@csr.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).