unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* tor with --expensive-hardening is using way too much memory
@ 2017-07-19 23:05 ng0
  2017-07-20  2:11 ` Kei Kebreau
  0 siblings, 1 reply; 3+ messages in thread
From: ng0 @ 2017-07-19 23:05 UTC (permalink / raw)
  To: guix-devel

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

I noticed this before the contribution entered master, so this message
is not really a news.

To quote myself from earlier today:

<ng0>      I think we should revert one piece of the tor hardened build.. 3 hours
           uptime: 684.3 MiB + 753.0 KiB = 685.1 MiB       tor

Comparison: my Chromium with 55 tabs open uses 2.2GB.

 Private  +   Shared  =  RAM used       Program
… 
 12.4 MiB +   1.1 MiB =  13.4 MiB       vim
 15.5 MiB + 959.0 KiB =  16.4 MiB       Xorg
 17.3 MiB +   5.6 MiB =  22.9 MiB       guix substitute
 22.8 MiB +   1.3 MiB =  24.1 MiB       shepherd
 26.7 MiB + 551.5 KiB =  27.3 MiB       emacs-25.2
131.1 MiB +   6.2 MiB = 137.3 MiB       .guix-real
732.7 MiB + 932.0 KiB = 733.6 MiB       tor
…
uptime: 6:24h

Now I wouldn't consider tor to be problematic when this would be the
default for tor. But it isn't, and --enable-expensive-hardening is an
experimental function which is not enabled by default from upstream (as
all our recently added config options for tor (not sure right now if all
are experimental, but they are not standard).

Comparison, Debian running for a very long time (months) and using the
same config:

 40.6 MiB + 486.0 KiB =  41.1 MiB       tor


I'm convinced that removing --enable-expensive-hardening will improve
the situation, I have watched an VM with tor without this config switch.
Whoever needs or wants this switch can make use of the easy way to
create custom packages in Guix.

If someone else can confirm my observations, I'll prepare an patch.
-- 
ng0
GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588
GnuPG: https://n0is.noblogs.org/my-keys
https://www.infotropique.org https://krosos.org

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: tor with --expensive-hardening is using way too much memory
  2017-07-19 23:05 tor with --expensive-hardening is using way too much memory ng0
@ 2017-07-20  2:11 ` Kei Kebreau
  2017-07-29 17:19   ` ng0
  0 siblings, 1 reply; 3+ messages in thread
From: Kei Kebreau @ 2017-07-20  2:11 UTC (permalink / raw)
  To: guix-devel

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

ng0 <ng0@infotropique.org> writes:

> I noticed this before the contribution entered master, so this message
> is not really a news.
>
> To quote myself from earlier today:
>
> <ng0>      I think we should revert one piece of the tor hardened build.. 3 hours
>            uptime: 684.3 MiB + 753.0 KiB = 685.1 MiB       tor
>
> Comparison: my Chromium with 55 tabs open uses 2.2GB.
>
>  Private  +   Shared  =  RAM used       Program
> … 
>  12.4 MiB +   1.1 MiB =  13.4 MiB       vim
>  15.5 MiB + 959.0 KiB =  16.4 MiB       Xorg
>  17.3 MiB +   5.6 MiB =  22.9 MiB       guix substitute
>  22.8 MiB +   1.3 MiB =  24.1 MiB       shepherd
>  26.7 MiB + 551.5 KiB =  27.3 MiB       emacs-25.2
> 131.1 MiB +   6.2 MiB = 137.3 MiB       .guix-real
> 732.7 MiB + 932.0 KiB = 733.6 MiB       tor
> …
> uptime: 6:24h
>
> Now I wouldn't consider tor to be problematic when this would be the
> default for tor. But it isn't, and --enable-expensive-hardening is an
> experimental function which is not enabled by default from upstream (as
> all our recently added config options for tor (not sure right now if all
> are experimental, but they are not standard).
>
> Comparison, Debian running for a very long time (months) and using the
> same config:
>
>  40.6 MiB + 486.0 KiB =  41.1 MiB       tor
>
>
> I'm convinced that removing --enable-expensive-hardening will improve
> the situation, I have watched an VM with tor without this config switch.
> Whoever needs or wants this switch can make use of the easy way to
> create custom packages in Guix.
>
> If someone else can confirm my observations, I'll prepare an patch.

The top(1) command tells me that tor is taking up just short of a
gigabyte of RAM. I haven't tried disabling the --enable-expensive-hardening
flag, yet.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: tor with --expensive-hardening is using way too much memory
  2017-07-20  2:11 ` Kei Kebreau
@ 2017-07-29 17:19   ` ng0
  0 siblings, 0 replies; 3+ messages in thread
From: ng0 @ 2017-07-29 17:19 UTC (permalink / raw)
  To: Kei Kebreau; +Cc: guix-devel

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

I will prepare a patch and open a new bug at guix-patches, I see no one
in favor of keeping it the way it is.

Kei Kebreau transcribed 2.8K bytes:
> ng0 <ng0@infotropique.org> writes:
> 
> > I noticed this before the contribution entered master, so this message
> > is not really a news.
> >
> > To quote myself from earlier today:
> >
> > <ng0>      I think we should revert one piece of the tor hardened build.. 3 hours
> >            uptime: 684.3 MiB + 753.0 KiB = 685.1 MiB       tor
> >
> > Comparison: my Chromium with 55 tabs open uses 2.2GB.
> >
> >  Private  +   Shared  =  RAM used       Program
> > … 
> >  12.4 MiB +   1.1 MiB =  13.4 MiB       vim
> >  15.5 MiB + 959.0 KiB =  16.4 MiB       Xorg
> >  17.3 MiB +   5.6 MiB =  22.9 MiB       guix substitute
> >  22.8 MiB +   1.3 MiB =  24.1 MiB       shepherd
> >  26.7 MiB + 551.5 KiB =  27.3 MiB       emacs-25.2
> > 131.1 MiB +   6.2 MiB = 137.3 MiB       .guix-real
> > 732.7 MiB + 932.0 KiB = 733.6 MiB       tor
> > …
> > uptime: 6:24h
> >
> > Now I wouldn't consider tor to be problematic when this would be the
> > default for tor. But it isn't, and --enable-expensive-hardening is an
> > experimental function which is not enabled by default from upstream (as
> > all our recently added config options for tor (not sure right now if all
> > are experimental, but they are not standard).
> >
> > Comparison, Debian running for a very long time (months) and using the
> > same config:
> >
> >  40.6 MiB + 486.0 KiB =  41.1 MiB       tor
> >
> >
> > I'm convinced that removing --enable-expensive-hardening will improve
> > the situation, I have watched an VM with tor without this config switch.
> > Whoever needs or wants this switch can make use of the easy way to
> > create custom packages in Guix.
> >
> > If someone else can confirm my observations, I'll prepare an patch.
> 
> The top(1) command tells me that tor is taking up just short of a
> gigabyte of RAM. I haven't tried disabling the --enable-expensive-hardening
> flag, yet.



-- 
ng0
GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588
GnuPG: https://n0is.noblogs.org/my-keys
https://www.infotropique.org https://krosos.org

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-07-29 17:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-19 23:05 tor with --expensive-hardening is using way too much memory ng0
2017-07-20  2:11 ` Kei Kebreau
2017-07-29 17:19   ` ng0

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).