public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Adam Carter <adamcarter3@gmail.com>
To: Gentoo User <gentoo-user@lists.gentoo.org>
Subject: Re: [gentoo-user] Machine hangs up with out of memory
Date: Fri, 30 Apr 2021 11:30:51 +1000	[thread overview]
Message-ID: <CAC=wYCETYqq5NNRfQdedEKG-vz0GDCir=EnRagECO-MVudGZ4g@mail.gmail.com> (raw)
In-Reply-To: <5d385a9cbe4fd28949b4a1e5b4d2216e@lists.qware.org>

[-- Attachment #1: Type: text/plain, Size: 921 bytes --]

On Wed, Apr 28, 2021 at 7:58 PM Kai Peter <kp@lists.qware.org> wrote:

> Hi,
>
> I have an issue with a machine where I'm not able to detect the real
> root cause. It hangs up totally. It seems like it was running out of
> memory - but why? Hopefully somebody can give me some insight. As far I
> can see right now, it hangs up a few hours after an `emerge --update
> --newuse --deep --with-bdeps=y @world`.
>
> The machine is an Intel Atom with 8 GB RAM (physical, max) and 24 GB
> swap (a file). So 32 GB RAM in total.
>

Might be worth adding zswap using zstd or lz4 to your config (uses more CPU
for less IO)
https://www.kernel.org/doc/html/latest/vm/zswap.html

If you want to see which processes are using the most memory, run top then
type 'M' to have top sort by memory instead of CPU. You can also type 'm'
to make top show the memory numbers as an ascii bar graph. The man page
explains what VIRT RES SHR mean.

[-- Attachment #2: Type: text/html, Size: 1394 bytes --]

  reply	other threads:[~2021-04-30  1:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-28  9:58 [gentoo-user] Machine hangs up with out of memory Kai Peter
2021-04-30  1:30 ` Adam Carter [this message]
2021-04-30 10:09   ` Michael
2021-04-30 23:07     ` Kai Peter
2021-05-02  0:39     ` Adam Carter
     [not found] <C8P97-495-1@gated-at.bofh.it>
     [not found] ` <d9456416-d744-43a4-a9d0-6a70eb8ea0d6@iname.com>
2021-04-29 18:01   ` Kai Peter

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='CAC=wYCETYqq5NNRfQdedEKG-vz0GDCir=EnRagECO-MVudGZ4g@mail.gmail.com' \
    --to=adamcarter3@gmail.com \
    --cc=gentoo-user@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