Re: [gentoo-user] Machine hangs up with out of memory

2021-04-29 Thread Adam Carter
On Wed, Apr 28, 2021 at 7:58 PM Kai Peter  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.


[gentoo-user] Re: Gnome-shell crashing

2021-04-29 Thread Adam Carter
On Thu, Apr 29, 2021 at 4:12 PM Adam Carter  wrote:

> Im my logs i see entries like
> Traps: gnome-shell trap int3 in libglib
>
> Is the issue more likely to be in glib than gnome-shell? Should I  mask
> off the latest version and try again or is there a better approach?
>

FWIW the solution to this is to mask
>gnome-base/gnome-settings-daemon-3.38.1 per bug 786966


Re: [gentoo-user] Anyone using extract_url with mutt?

2021-04-29 Thread Walter Dnes
> I'd be interested to see how this integrates in your workflow,

  Oops, forgote the attachment.  Here it is.

-- 
Walter Dnes 
I don't run "desktop environments"; I run useful applications


Re: [gentoo-user] Anyone using extract_url with mutt?

2021-04-29 Thread Walter Dnes
On Wed, Apr 28, 2021 at 12:18:42PM +0800, Steve Kollios wrote
> 
> I'd be interested to see how this integrates in your workflow, I'm
> looking for a similar solution myself. The current functionality of
> mutt/neomutt leaves a bit to be desired when using it as described.

 I read email with mutt in an xterm.  Here's my current my current,
deprecated, setup with Urlview.  It's a two-step process...

1) In "~/.mutt/muttrc" in the "Macros" section, as one long line, tell
mutt to feed the message through "urlview" when you hit uppercase U,
either {SHIFT}{U} or "u" with {CAPSLOCK} enabled.

macro pager U ":set pipe_decode\n|urlview\n:unset pipe_decode\n" "extract URLs 
out of a message"

2) In "~/.urlview" two lines tell Urlview what regexp to match as a URL
and what to do when the user selects a URL.  I don't know if the
"width/height" parameters are honoured any more in Pale Moon

REGEXP (((https?|ftp)|mailto):(//)?[^ >"\t]*|www\.[-a-z0-9.]+)[^ .,;\t>">\):]
COMMAND palemoon -width 950 -height 1050 -P email %s &

  My workflow is...

* I'm reading an email, and I come across a URL I want to look at.

* I hit {SHIFT}{U} and a list of URLS from that email pops up at the top.
  See the attached PNG image.  I'm using a "what's coming soon" email
  from Netflix as an example.

* Use the UP and DOWN keys on the keyboard to select the URL you're
  interested in, i.e the arrow at the left of the image.

* Hit {ENTER} and the selected URL shows up at the bottom of my xterm.
  I can edit the URL if it want to.  Hitting {ENTER} again launches the
  command (i.e. Pale Moon with the the email profile), or {CTRL}{C}
  backs out.

-- 
Walter Dnes 
I don't run "desktop environments"; I run useful applications



Re: [gentoo-user] Machine hangs up with out of memory

2021-04-29 Thread Kai Peter

On 2021-04-29 08:59, J.O. Aho wrote:

Your named is taking up 7G or memory, are you sure your configuration
is correct?
Thanks, good point. There were errors in the logs. I will investigate 
and monitor it.



--

 //Aho




Re: [gentoo-user] Anyone using extract_url with mutt?

2021-04-29 Thread Nils Freydank
Hi Walter,

Am Dienstag, den 27.04.2021 schrieb Walter Dnes :
>   Thanks.  I simply want a list of URLs that I can select to open in
> Pale Moon.  If I can copy URLs into the paste buffer, even better.  It's
> been a long while since I last used an overlay.  What are the steps to
> setting up "urlscan" in an overlay?  Even more basic, what are the steps
> to setting up an overlay?  My /etc/portage/repos.conf/
I just drop you two links to the wiki, which do explain both an overlay from
an external/remote/foreign source aswell as a local-only overlay. I do prefer
app-eselect/eselect-repository over layman, but that is just personal
preference.

remote/foreign source:
https://wiki.gentoo.org/wiki/Ebuild_repository

local only:
https://wiki.gentoo.org/wiki/Custom_ebuild_repository

You already have a local repo in /usr/local/portage, so could use this:
> cat /etc/portage/repos.conf/localrepo.conf 
> [localrepo]
> location = /usr/local/portage

Hope that helps and feel free to come back and ask if you get stuck somewhere.
Best regards,
Nils


signature.asc
Description: PGP signature


Re: [gentoo-user] Rusty problems

2021-04-29 Thread Adam Carter
On Wednesday, April 28, 2021, Alan Mackenzie  wrote:

> Hello, Gentoo.
>
> I'm having problems building rust.


On systems that I setup assuming I wouldn’t need swap, I set swappiness low
and add a swap file (on ssd if possible) so the bigger builds can at least
finish, albeit more slowly. Generally swap never gets touched. I also use
zswap with zstd or lz4, which perform better than the old lzo deflate/zlib
options, sometimes by a wide margin.

I don’t bother with /var/tmp/portage on tmpfs any more as it seemed to be
more trouble than it was worth.


[gentoo-user] Gnome-shell crashing

2021-04-29 Thread Adam Carter
Im my logs i see entries like
Traps: gnome-shell trap int3 in libglib

Is the issue more likely to be in glib than gnome-shell? Should I  mask off
the latest version and try again or is there a better approach?