From: Michal Szymanski <msz@astrouw.edu.pl>
To: linux-kernel@vger.kernel.org
Subject: scheduler/swapper doing bad job (kernel 2.4.20-20.7smp)
Date: Fri, 14 Nov 2003 10:14:13 +0100 [thread overview]
Message-ID: <20031114091413.GA874@astrouw.edu.pl> (raw)
Hi,
I have a dual-P4 (2x2.2GHz) machine running RedHat 7.2 upgraded to
kernel 2.4.20-20.7smp, glibc 2.2.4-32.
Equipped with 1GB RAM, SCSI 160 adapter, three 2.5TB raid arrays
(IDE-to-SCSI hardware devices), Ultrium tape drive (on SCSI) and one IDE
disk with system and 2GB swap.
It is serving (NFS) data to 6-8 machines (not very intensively) and
running two jobs (memory and CPU intensive, plus some I/O). Each job
runs in cycles, starting a few programs sequentially, the biggest and
longest of which is 360MB. Normally it takes about a minute to complete
one cycle.
If it runs as described above, everything works fine. But when I start
any I/O intensive additional job (like extracting data from Ultrium tape
to the RAID array), the system starts to behave weirdly. The swap use
grows quite fast from typical dozen-or-so MB to 300MB or more. One (at
first) and in a few minutes BOTH big jobs get practically stopped,
getting not more than 1% of CPU time. The system load grows from ~3
to 5 or more but 'top' reports 80-90% idle time for both CPUs.
The 'tar' is working fine, still.
At first I thought it happens because the big jobs are niced to 19. But
when I ran them with normal (0) priority, nothing did change.
Well, I would guess maybe I do not have enough memory, so the
scheduler/swapper places the big jobs on the swap. But, the 'tar' which
extracts data from tape, uses less than 1MB of memory, so it does not
seem to be the reason.
So I tried to do somewhat "risky" experiment: I disabled (with
everything running) the swap entirely. 'swapoff' took a minute or so to
complete but once the swap space was 0, the system immediately started
to work as expected, giving 80-90% of CPU to the big jobs, 10-20% to the
'tar'.
The conclusion is rather discouraging - it seems that there is something
wrong with the scheduler/swapper. I'm no expert on these issues but as
an end user, I really can't understand why the system is working fine
w/o any swap and gets almost stopped with swap enabled. I guess adding
the swap should help rather than make things so bad.
Any ideas?
regards, Michal.
--
Michal Szymanski (msz@astrouw.edu.pl)
Warsaw University Observatory, Warszawa, POLAND
reply other threads:[~2003-11-14 9:14 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=20031114091413.GA874@astrouw.edu.pl \
--to=msz@astrouw.edu.pl \
--cc=linux-kernel@vger.kernel.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®