From: Peter Humphrey <prh@gotadsl.co.uk>
To: gentoo-amd64@lists.gentoo.org
Subject: Re: [gentoo-amd64] Re: System load during emerge
Date: Sun, 4 Mar 2007 17:35:16 +0000 [thread overview]
Message-ID: <200703041735.16861.prh@gotadsl.co.uk> (raw)
In-Reply-To: <pan.2007.03.04.16.09.03@cox.net>
On Sunday 04 March 2007 16:09:03 Duncan wrote:
> Peter Humphrey <prh@gotadsl.co.uk> posted
> 200703041151.37846.prh@gotadsl.co.uk, excerpted below, on Sun, 04 Mar
>
> > What is the machine doing?
>
> There's a couple things to check. First, you say /tmp is on tmpfs and in
> memory (no swap), but you don't mention where you have $PORTAGE_TMPDIR
> pointed.
It's not long since we discussed this. It's set to /tmp, and so is
PKG_TMPDIR.
> Second, for general disk access speed (IOW, not portage specific), if
> you've not checked it, emerge hdparm if necessary and see if your hard
> drives are using DMA. If they aren't, you'll have MUCH slower disk i/o.
Hdparm is installed and does set DMA on. The only disk access I can foresee
portage doing is to write its log file. Could that really consume as much
time as I'm seeing? Seems unlikely to me.
[Later...] I've now found that if I run "hdparm -d1 /dev/sda" from an X
terminal I get "HDIO_SET_DMA failed: Inappropriate ioctl for device", but
when /etc/init.d/hdparm is run during boot I see [ok] for each drive. Looks
like I've got some exploring to do.
> Of course, also note that depending on the ebuild stage and how much of
> what it is accessing you already have cached, portage does do some non-
> tmp I/O access.
As I said, I was watching firefox being compiled. All the preliminary stages
had been completed by then. All the source code should have been in memory,
but I can't say the same for any other libraries. On the other hand, just
how much time is needed to load all the development libraries needed for
this compilation?
> There's also portage logging and associated log variables. Again, this
> shouldn't be a big deal if you've got DMA on your drives, but it might be
> if you don't.
Yes, that's the only thing I can think of.
> Finally, if it's writing anything to NFS mounts or the like over the
> network, or if you have distcc active, it's possible the wait is on the
> network, not on your local hard drives, of course depending on exactly
> how you are configured.
I did play with distcc but found it unreliable on a large package, so I've
removed it from make.conf. I don't use NFS or any other networked
operations that I can think of.
Thanks for the suggestions.
--
Rgds
Peter
--
gentoo-amd64@gentoo.org mailing list
next prev parent reply other threads:[~2007-03-04 17:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-04 11:51 [gentoo-amd64] System load during emerge Peter Humphrey
2007-03-04 16:09 ` [gentoo-amd64] " Duncan
2007-03-04 17:35 ` Peter Humphrey [this message]
2007-03-04 17:58 ` dustin
2007-03-04 19:27 ` Bernhard Auzinger
2007-03-04 18:29 ` [gentoo-amd64] " Thomas Rösner
2007-03-06 9:14 ` Peter Humphrey
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=200703041735.16861.prh@gotadsl.co.uk \
--to=prh@gotadsl.co.uk \
--cc=gentoo-amd64@lists.gentoo.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