zsh-users
 help / color / mirror / code / Atom feed
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>
To: zsh-users@math.gatech.edu
Subject: Curbing memory usage
Date: 11 Sep 1996 23:27:29 -0500	[thread overview]
Message-ID: <ufasp8o2w9a.fsf@sina.hpc.uh.edu> (raw)

I moved from bash to zsh because I wanted programmable completion, and
because the FAQ had statements like 

"zsh uses about the same amount of heap memory as bash"
and
"...uses much less memory and CPU time than tcsh."

So I build 3.0.0 --with-zsh-mem on my Solaris 2.4 machine and happily work
away.  This thing has everything!  Unfortunately I notice that while
command-line editing and completion is always snappy, there is a very
noticeable delay between hitting return and, say, /bin/true running.  vmstat
shows huge numbers of page faults, and top shows a 9MB zsh process trying
to swap most of itself back into core.  Wow! That's nearly ten times larger
than any tcsh process on my system.

What is causing this madness?  Here are my options:

# Shell options
setopt Append_History
setopt Auto_List
setopt Auto_Menu
setopt Auto_PushD
setopt Auto_Remove_Slash
setopt noBeep
setopt Correct_All
setopt Extended_Glob
setopt Hist_Ignore_Dups
setopt Hist_Ignore_Space
setopt Hist_No_Store
setopt Ignore_Eof
setopt List_Types
setopt Long_List_Jobs
setopt PushD_Ignore_Dups

I do have 1500 lines of history, but in bash I kept 10000 lines and never
saw memory usage like this.  Are there any tricks to keeping it down?
-- 
      Jason L. Tibbitts III - tibbs@uh.edu - 713/743-8684 - 221SR1
System Manager:  University of Houston High Performance Computing Center
                1994 PC800 "Kuroneko"      DoD# 1723


                 reply	other threads:[~1996-09-12  4:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=ufasp8o2w9a.fsf@sina.hpc.uh.edu \
    --to=tibbs@hpc.uh.edu \
    --cc=zsh-users@math.gatech.edu \
    /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).