* Wanted: System tune-up hints for Decsystem 2100
@ 1992-09-18 17:52 Anthony Baxter
1992-09-21 17:50 ` Eiji Hirai
0 siblings, 1 reply; 9+ messages in thread
From: Anthony Baxter @ 1992-09-18 17:52 UTC (permalink / raw)
Ok, I'm throwing this out to the world in general, if anyone has any good
ideas, please let me know.
Heres the situation:
We have a Decsystem 2100, configured with 24M of memory, 3 RZ55 disks,
and one Quantum105S disk. Its currently configured with 128M of swap, one
32M swap partition on each of the disks. This machine typically has over 70
users logged into it, and, not suprisingly, it's response isnt so hot.
I've got the kernel down to 1.4M, by being fairly ruthless in what gets
stripped out in terms of optional bits. We've been all over the system,
replacing many DEC shipped programs with better/more efficient ones from
either off the net, or written by people here.
At the moment, we have the system hitting just about every limit there is,
we occasionally (every few days) run out of swap, but the avm is already at
around 23-25M, so I'm not sure if adding more swap will cause more
problems... The number of packets its putting out is also rather high...
these combine to mean that the cpu spends about 70% of its time in 'system'
when the machine is really loaded...
I've already been through once and rebalanced the load on the disks, this
helped for a while, but the load has just increased further...
Does anyone have any other helpful suggestions for improving system
performance? Upgrading unfortunately isnt an option (we are working with
donated equipment, and so must take what we get). I've appended the kernel
config file, if anyone can see anything I've missed that might help
performance, please point it out.
Please post or email any suggestions,
Thanks,
Anthony
(oh, yeah, running Ultrix 4.2A, if it matters)
---kernel config file---
ident "YOYO"
machine mips
cpu "DS3100"
maxusers 128
processors 1
maxuprc 60
physmem 24
timezone -10 dst 2
swapfrag 128
options INET
options NFS
options RPC
options UFS
options NETMAN
options PACKETFILTER
options AUDIT
options SYS_TRACE
makeoptions ENDIAN="-EL"
makeoptions LDOPTS="-x"
config vmunix root on rz0a swap on rz0b and rz1d and rz2d and rz3d
adapter ibus0 at nexus?
controller sii0 at ibus? vector sii_intr
disk rz0 at sii0 drive 0
disk rz1 at sii0 drive 1
disk rz2 at sii0 drive 2
disk rz3 at sii0 drive 3
disk rz4 at sii0 drive 4
disk rz5 at sii0 drive 5
disk rz6 at sii0 drive 5
tape tz0 at sii0 drive 0
tape tz1 at sii0 drive 1
tape tz2 at sii0 drive 2
tape tz3 at sii0 drive 3
tape tz4 at sii0 drive 4
tape tz5 at sii0 drive 5
tape tz6 at sii0 drive 6
device ln0 at ibus? vector lnintr
device dc0 at ibus? vector dcintr
scs_sysid 1
pseudo-device nfs
pseudo-device rpc
pseudo-device pty 176
pseudo-device loop
pseudo-device ether
pseudo-device ufs
pseudo-device netman
pseudo-device inet
pseudo-device msdup
pseudo-device packetfilter
pseudo-device audit
pseudo-device sys_trace
pseudo-device sl1
--
anthony baxter rdt : anthony@rdt.monash.edu.au.
gaunix : anthony@yoyo.cc.monash.edu.au. work : anthony@aaii.oz.au
digital technology / general access unix group / a a i i
monash university melbourne, australia
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Wanted: System tune-up hints for Decsystem 2100
1992-09-18 17:52 Wanted: System tune-up hints for Decsystem 2100 Anthony Baxter
@ 1992-09-21 17:50 ` Eiji Hirai
1992-09-22 10:30 ` Anthony Baxter
0 siblings, 1 reply; 9+ messages in thread
From: Eiji Hirai @ 1992-09-21 17:50 UTC (permalink / raw)
anthony@yoyo.cc.monash.edu.au (Anthony Baxter) writes:
> Does anyone have any other helpful suggestions for improving system
> performance?
> options AUDIT
> options SYS_TRACE
> pseudo-device audit
> pseudo-device sys_trace
You might think about eliminating these and turning off any sort of
auditing. At least turn off acct by "accton" and comment out the entry in
/etc/rc.
Another performance gain can be had by editing /usr/sys/conf/mips/param.c
and enabling cache_bufcache:
> int cache_bufcache = 1;
You're probably looking for nifty kernel hacks but I don't know as much as I
should about them.
Here are some non-kernel stuff which you've probably looked at already:
Are you running routed? If so, kill it, disable from /etc/rc.local and use
static routing (see route(8c)).
Does the machine receive email from the outside world? If it doesn't, kill
the sendmail process and disable from /etc/rc.local. You can still send
email out - you just can't receive.
Did you hash your password file? If not, then "mkpasswd /etc/passwd".
Did you freeze your sendmail.cf file? If not, then "/usr/lib/sendmail -bz".
If you're not exporting any NFS directories, disable nfsd from /etc/rc.local.
If you're not mounting any NFS directories, disable biod from /etc/rc.local.
If you're not doing any NFS, disable NFS from the kernel.
Are there useless entries in /etc/crontab, or /var/spool/at?
If lots of people are running emacs at the same time, then you might think
about the draconian method of asking them use jove or something that takes
up less memory.
What other services do you provide on your system, or were you just
interested in kernel mods?
--
Eiji Hirai <hirai@cc.swarthmore.edu> : : : : : :: ::: :::: :::::
Unix Geek for Swarthmore College : : : : : :: ::: :::: :::::
Information Services, Swarthmore, PA, USA. Copyright 1992 by Eiji Hirai.
I don't speak for Swarthmore College. All Rights Reserved.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Wanted: System tune-up hints for Decsystem 2100
1992-09-21 17:50 ` Eiji Hirai
@ 1992-09-22 10:30 ` Anthony Baxter
1992-09-22 18:10 ` Eiji Hirai
1992-09-22 18:37 ` Alan Rollow - Alan's Home for Wayward Tumbleweeds.
0 siblings, 2 replies; 9+ messages in thread
From: Anthony Baxter @ 1992-09-22 10:30 UTC (permalink / raw)
hirai@cc.swarthmore.edu (Eiji Hirai) writes:
>anthony@yoyo.cc.monash.edu.au (Me) wrote:
>> Does anyone have any other helpful suggestions for improving system
>> performance?
>> options AUDIT
>> options SYS_TRACE
>> pseudo-device audit
>> pseudo-device sys_trace
>You might think about eliminating these and turning off any sort of
>auditing. At least turn off acct by "accton" and comment out the entry in
>/etc/rc.
Probably a good move. A quick check reveals that only one of the
administrators checks the audit logs at all, and even then, 'infrequently'.
sys_trace also can go - development of software is done on another machine,
then dragged across once working.
>Another performance gain can be had by editing /usr/sys/conf/mips/param.c
>and enabling cache_bufcache:
>> int cache_bufcache = 1;
What does this do? I saw something about 'enables hardware buffer caching',
but how is this different to 'not enabled buffer caching'?
>Here are some non-kernel stuff which you've probably looked at already:
>Does the machine receive email from the outside world? If it doesn't, kill
>the sendmail process and disable from /etc/rc.local. You can still send
>email out - you just can't receive.
Mail is one of the major uses of the machine. On busy days, we'd have over a
thousand pieces of mail going through the machine. I'm looking at 'zmailer'
as a replacement to sendmail, it seems to be designed for heavy mail usage
systems. I have no idea if it will consume less or more resources than
sendmail - anyone out there care to comment?
>If you're not mounting any NFS directories, disable biod from
/etc/rc.local.
We're mounting the news spool read-only, then posting via NNTP. This is
a) to reduce the load on the news server, and
b) because we also wanted to have local news groups, but didnt want to have
the overhead of a full news feed. (Basically, symlinking the two news trees
together, and hacking a few scripts to build an active file, and make sure
posts to local newsgroups also gets sent through a local relaynews).
>Are there useless entries in /etc/crontab, or /var/spool/at?
We're running Vixie-cron, the extra functionality it provides more than
compensates for any possiblly increased overhead.
>If lots of people are running emacs at the same time, then you might think
>about the draconian method of asking them use jove or something that takes
>up less memory.
Fortunately, most of the users on the system would would use emacs got sick
of waiting for it to start up, and switched to a smaller editor. (sort of
self-limiting in a way :)
>What other services do you provide on your system, or were you just
>interested in kernel mods?
The system is set up as a 'general access' machine - any staff or student of
our University can get an account, as opposed to the computer centre
machines which require that you be doing an approved computing subject. Most
of what is run are things like mail, news, talk, and simple interactive
things like that. Unfortunately, the mailer that a lot of the users use
(pine) is a memory pig from hell (TM), and nn and tin arent much better.
After an initial flurry of reducing the kernel, balancing the disks, and
such, most of the changes have been to programs on the system. Some that
have been done:
finger was rewritten (its used a lot, and was rather inefficient)
a daemon collects the load average, and various other kernel statistics,
and makes them availiable in a shared memory segment. Then programs which
used to collect this data were rewritten to instead get it from the shm
segment (quite a noticeable improvement)
Anything that was initially written in sh5 that was used much was rewritten
in C.
(as well as the above speed-up related ones, we also replaced many with
equivalents that provided more functionality/less bugs, such as sendmail,
passwd, cron, &c....)
As a 'Hey DEC, could this be fixed', I'll add the following postscript:
This decsystem 2100 had recently been up for nearly two months. The swap
fragmentation amount (aka the 'wasted' number in pstat -s) was over
25 gigabytes. Not bad, considering we only had 24M real and 128M virtual
memory. Is this (minor, but initially worrying) bug fixed in Ultrix 4.3?
Anthony
--
anthony baxter rdt : anthony@rdt.monash.edu.au.
gaunix : anthony@yoyo.cc.monash.edu.au. work : anthony@aaii.oz.au
digital technology / general access unix group / a a i i
monash university melbourne, australia
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Wanted: System tune-up hints for Decsystem 2100
1992-09-22 10:30 ` Anthony Baxter
@ 1992-09-22 18:10 ` Eiji Hirai
1992-09-22 19:28 ` Mike Iglesias
1992-09-23 5:29 ` Anthony Baxter
1992-09-22 18:37 ` Alan Rollow - Alan's Home for Wayward Tumbleweeds.
1 sibling, 2 replies; 9+ messages in thread
From: Eiji Hirai @ 1992-09-22 18:10 UTC (permalink / raw)
anthony@yoyo.cc.monash.edu.au (Anthony Baxter) writes:
> the mailer that a lot of the users use (pine) is a memory pig from hell (TM)
Have you looked at elm or mush?
> and nn and tin arent much better.
Are you running nnmaster and mthreads on the news server or your own
machine? I know that mthreads is a serious cpu hog. I hate mthreads.
--
Eiji Hirai <hirai@cc.swarthmore.edu> : : : : : :: ::: :::: :::::
Unix Geek for Swarthmore College : : : : : :: ::: :::: :::::
Information Services, Swarthmore, PA, USA. Copyright 1992 by Eiji Hirai.
I don't speak for Swarthmore College. All Rights Reserved.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Wanted: System tune-up hints for Decsystem 2100
1992-09-22 10:30 ` Anthony Baxter
1992-09-22 18:10 ` Eiji Hirai
@ 1992-09-22 18:37 ` Alan Rollow - Alan's Home for Wayward Tumbleweeds.
1992-09-23 5:35 ` Anthony Baxter
1 sibling, 1 reply; 9+ messages in thread
From: Alan Rollow - Alan's Home for Wayward Tumbleweeds. @ 1992-09-22 18:37 UTC (permalink / raw)
In article <1992Sep22.103058.20970@monu6.cc.monash.edu.au>, anthony@yoyo.cc.monash.edu.au (Anthony Baxter) writes:
>
> [ Offered a whole bunch of good suggestions on where to look for
> more ways to improve the performance of this overloaded DECstation
> 2100. His comments were retained are preceded by >>. ]
>
>hirai@cc.swarthmore.edu (Eiji Hirai) writes:
>
> [ This customer responded with commentary on the suggestions. ]
>
I don't know who originated comments preceded by >>>.
>>Another performance gain can be had by editing /usr/sys/conf/mips/param.c
>>and enabling cache_bufcache:
>>> int cache_bufcache = 1;
>What does this do? I saw something about 'enables hardware buffer caching',
>but how is this different to 'not enabled buffer caching'?
>
If you have a copy of "mips RISC ARCHITECTURE", by Gerry Kane, handy
turn to the Memory Management chapter. I'll do a quick, hopefully
accurate, summary for those that don't have the book handy. When
the MIPS CPU is in kernel mode it has access to four distinct virtual
address spaces. One of these is the area that maps the 2 GB address
space available to user processes (kuseg). The other three are kseg0
and kseg1 that directly map the first 512 MB of physical memory. Accesses
to kseg1 are uncached, while accesses to kseg0 are cached. The 4th
segment is kseg2 which can be cached and is mapped by the TLB.
At this point I'm not sure where the buffer cache is accessed. There
are two choices.
1. Kseg1 when cache_bufcache is turned off.
2. Kseg2 with caching turned off when cache_bufcache is turned off
and caching turned on when cache_bufcache is turned on.
The detailed benefits of using the hardware cache for the buffer
cache probably depend on the size of the cache and whether there
is any cache prefetch.
>
>As a 'Hey DEC, could this be fixed', I'll add the following postscript:
>This decsystem 2100 had recently been up for nearly two months. The swap
>fragmentation amount (aka the 'wasted' number in pstat -s) was over
>25 gigabytes. Not bad, considering we only had 24M real and 128M virtual
>memory. Is this (minor, but initially worrying) bug fixed in Ultrix 4.3?
I've never been able to exercise this particular bug myself, so I haven't
been able to see whether or not it is fixed in V4.3. I've got the release
notes around somewhere, so I can look through the list of things that
were fixed... I went through the list of kernel fixes and didn't see
this one mentioned. If you still see it upon upgrading to V4.3, please
submit an SPR.
Finally a potential performance suggestion. The next time you have
the system down, check the microcode version of the RZ55s. You should
be able to get this from the "scsi pb" command of the console monitor.
If the version is 700 or less, contact DEC Field Service to see if you
can get the microcode update (V900). This microcode changes enables
the read-ahead cache in the RZ55. It was previously disabled.
>
>Anthony
>--
> anthony baxter rdt : anthony@rdt.monash.edu.au.
> gaunix : anthony@yoyo.cc.monash.edu.au. work : anthony@aaii.oz.au
> digital technology / general access unix group / a a i i
> monash university melbourne, australia
>
--
Alan Rollow alan@nabeth.cxo.dec.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Wanted: System tune-up hints for Decsystem 2100
1992-09-22 18:10 ` Eiji Hirai
@ 1992-09-22 19:28 ` Mike Iglesias
1992-09-23 5:29 ` Anthony Baxter
1 sibling, 0 replies; 9+ messages in thread
From: Mike Iglesias @ 1992-09-22 19:28 UTC (permalink / raw)
In article <G8TQBYTS@cc.swarthmore.edu> hirai@cc.swarthmore.edu (Eiji Hirai) writes:
>Are you running nnmaster and mthreads on the news server or your own
>machine? I know that mthreads is a serious cpu hog. I hate mthreads.
On our news server, mthreads has run up about 30 minutes of cpu time in
about 40 hours of elapsed time (and we thread all ~1800 newsgroups we
carry). nnmaster has run up about 11 minutes of cpu time over the same 40
hours. I don't call that a cpu hog.
Mike Iglesias Internet: iglesias@draco.acs.uci.edu
University of California, Irvine BITNET: iglesias@uci
Office of Academic Computing uucp: ...!ucbvax!ucivax!iglesias
Distributed Computing Support phone: (714) 856-6926
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Wanted: System tune-up hints for Decsystem 2100
1992-09-22 18:10 ` Eiji Hirai
1992-09-22 19:28 ` Mike Iglesias
@ 1992-09-23 5:29 ` Anthony Baxter
1992-09-23 15:38 ` Terry Gray
1 sibling, 1 reply; 9+ messages in thread
From: Anthony Baxter @ 1992-09-23 5:29 UTC (permalink / raw)
In <G8TQBYTS@cc.swarthmore.edu> hirai@cc.swarthmore.edu (Eiji Hirai) writes:
>anthony@yoyo.cc.monash.edu.au (Anthony Baxter) writes:
>> the mailer that a lot of the users use (pine) is a memory pig from hell (TM)
>Have you looked at elm or mush?
Yep, both are availiable, as is mh. Trouble is, we have quite a few neophyte
users, who like using pine. It certainly is user friendly, just not overly
system friendly.
>> and nn and tin arent much better.
>Are you running nnmaster and mthreads on the news server or your own
>machine? I know that mthreads is a serious cpu hog. I hate mthreads.
nnmaster has racked up 24 minutes cpu time in the 24 hours the system has
been up. We dont run trn here (there has been no demand for it) and the tin
clients create globally readable .index files in a directory in /tmp.
I ran mthreads for a while (when I was fiddling with trn) - it did seem to
be overly fond of the CPU, and consumed about double what nnmaster did.
If only the various newsreaders would share a common database format...
Anthony
--
anthony baxter rdt : anthony@rdt.monash.edu.au.
gaunix : anthony@yoyo.cc.monash.edu.au. work : anthony@aaii.oz.au
digital technology / general access unix group / a a i i
monash university melbourne, australia
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Wanted: System tune-up hints for Decsystem 2100
1992-09-22 18:37 ` Alan Rollow - Alan's Home for Wayward Tumbleweeds.
@ 1992-09-23 5:35 ` Anthony Baxter
0 siblings, 0 replies; 9+ messages in thread
From: Anthony Baxter @ 1992-09-23 5:35 UTC (permalink / raw)
In <1992Sep22.183744.6212@nntpd2.cxo.dec.com> alan@nabeth.enet.dec.com (Alan Rollow - Alan's Home for Wayward Tumbleweeds.) writes:
>>As a 'Hey DEC, could this be fixed', I'll add the following postscript:
>>This decsystem 2100 had recently been up for nearly two months. The swap
>>fragmentation amount (aka the 'wasted' number in pstat -s) was over
>>25 gigabytes. Not bad, considering we only had 24M real and 128M virtual
>>memory. Is this (minor, but initially worrying) bug fixed in Ultrix 4.3?
>I've never been able to exercise this particular bug myself, so I haven't
>been able to see whether or not it is fixed in V4.3. I've got the release
>notes around somewhere, so I can look through the list of things that
>were fixed... I went through the list of kernel fixes and didn't see
>this one mentioned. If you still see it upon upgrading to V4.3, please
>submit an SPR.
I've only ever seen it on 2100 and 3100s. 5000's dont seem to have the bug.
> [suggestion about checking version of microcode in the disks]
Thanks for the info,
Anthony
--
anthony baxter rdt : anthony@rdt.monash.edu.au.
gaunix : anthony@yoyo.cc.monash.edu.au. work : anthony@aaii.oz.au
digital technology / general access unix group / a a i i
monash university melbourne, australia
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Wanted: System tune-up hints for Decsystem 2100
1992-09-23 5:29 ` Anthony Baxter
@ 1992-09-23 15:38 ` Terry Gray
0 siblings, 0 replies; 9+ messages in thread
From: Terry Gray @ 1992-09-23 15:38 UTC (permalink / raw)
In article <1992Sep23.052939.19245@monu6.cc.monash.edu.au> anthony@yoyo.cc.monash.edu.au (Anthony Baxter) writes:
>>> the mailer that a lot of the users use (pine) is a memory pig from hell (TM)
>>Have you looked at elm or mush?
>Yep, both are availiable, as is mh. Trouble is, we have quite a few neophyte
>users, who like using pine. It certainly is user friendly, just not overly
>system friendly.
One of the unanticipated side-effects of the PC-Pine project (porting Pine
to DOS) is that the Unix version of Pine will come to be noticeably more
memory-efficient.
Look for a new version by Christmas...
--
Terry Gray
University of Washington
gray@cac.washington.edu
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~1992-09-23 15:38 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1992-09-18 17:52 Wanted: System tune-up hints for Decsystem 2100 Anthony Baxter
1992-09-21 17:50 ` Eiji Hirai
1992-09-22 10:30 ` Anthony Baxter
1992-09-22 18:10 ` Eiji Hirai
1992-09-22 19:28 ` Mike Iglesias
1992-09-23 5:29 ` Anthony Baxter
1992-09-23 15:38 ` Terry Gray
1992-09-22 18:37 ` Alan Rollow - Alan's Home for Wayward Tumbleweeds.
1992-09-23 5:35 ` Anthony Baxter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox