* [gentoo-user] kernels & swap usage
@ 2012-08-07 5:02 Philip Webb
2012-08-08 6:15 ` Florian Philipp
2012-08-08 17:24 ` Volker Armin Hemmann
0 siblings, 2 replies; 11+ messages in thread
From: Philip Webb @ 2012-08-07 5:02 UTC (permalink / raw
To: Gentoo User
Just an observation : when I updated Libre Office & Firefox this week,
neither compile used swap (I have 4 GB RAM);
OTOH when I did them the previous time, both did use swap;
the total time & the HDD usage remained almost the same.
In between, I updated the Kernel 3.0.0 -> 3.4.0 ,
but made no other changes in config files etc.
Does anyone have thoughts re the effect of kernel versions on swapping ?
--
========================,,============================================
SUPPORT ___________//___, Philip Webb
ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto
TRANSIT `-O----------O---' purslowatchassdotutorontodotca
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] kernels & swap usage
2012-08-07 5:02 [gentoo-user] kernels & swap usage Philip Webb
@ 2012-08-08 6:15 ` Florian Philipp
2012-08-08 9:33 ` Philip Webb
2012-08-08 17:24 ` Volker Armin Hemmann
1 sibling, 1 reply; 11+ messages in thread
From: Florian Philipp @ 2012-08-08 6:15 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 730 bytes --]
Am 07.08.2012 07:02, schrieb Philip Webb:
> Just an observation : when I updated Libre Office & Firefox this week,
> neither compile used swap (I have 4 GB RAM);
> OTOH when I did them the previous time, both did use swap;
> the total time & the HDD usage remained almost the same.
> In between, I updated the Kernel 3.0.0 -> 3.4.0 ,
> but made no other changes in config files etc.
>
> Does anyone have thoughts re the effect of kernel versions on swapping ?
>
Did Firefox ever actually need to swap? Here it does a fair share of
disk I/O (some python script?) but never actually needs lots of memory.
With Libre Office, it could be their recent code cleaning effort. They
removed large amounts of cruft.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] kernels & swap usage
2012-08-08 6:15 ` Florian Philipp
@ 2012-08-08 9:33 ` Philip Webb
2012-08-08 13:34 ` Florian Philipp
0 siblings, 1 reply; 11+ messages in thread
From: Philip Webb @ 2012-08-08 9:33 UTC (permalink / raw
To: gentoo-user
120808 Florian Philipp wrote:
> Am 07.08.2012 07:02, schrieb Philip Webb:
>> Just an observation : when I updated Libre Office & Firefox this week,
>> neither compile used swap (I have 4 GB RAM);
>> OTOH when I did them the previous time, both did use swap;
>> the total time & the HDD usage remained almost the same.
>> In between, I updated the Kernel 3.0.0 -> 3.4.0 ,
>> but made no other changes in config files etc.
> Did Firefox ever actually need to swap? Here it does a fair share
> of disk I/O (some python script?) but never actually needs lots of memory.
> With Libre Office, it could be their recent code cleaning effort.
> They removed large amounts of cruft.
Sorry, perhaps I didn't make it clear enough:
I'm refering to the process of compiling the pkgs via Portage,
not to using them after they have been installed.
Both packages used noticeably less memory during the compile stage
on the latest occasion in contrast to the previous Emerges.
--
========================,,============================================
SUPPORT ___________//___, Philip Webb
ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto
TRANSIT `-O----------O---' purslowatchassdotutorontodotca
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] kernels & swap usage
2012-08-08 9:33 ` Philip Webb
@ 2012-08-08 13:34 ` Florian Philipp
0 siblings, 0 replies; 11+ messages in thread
From: Florian Philipp @ 2012-08-08 13:34 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1124 bytes --]
Am 08.08.2012 11:33, schrieb Philip Webb:
> 120808 Florian Philipp wrote:
>> Am 07.08.2012 07:02, schrieb Philip Webb:
>>> Just an observation : when I updated Libre Office & Firefox this week,
>>> neither compile used swap (I have 4 GB RAM);
>>> OTOH when I did them the previous time, both did use swap;
>>> the total time & the HDD usage remained almost the same.
>>> In between, I updated the Kernel 3.0.0 -> 3.4.0 ,
>>> but made no other changes in config files etc.
>> Did Firefox ever actually need to swap? Here it does a fair share
>> of disk I/O (some python script?) but never actually needs lots of memory.
>> With Libre Office, it could be their recent code cleaning effort.
>> They removed large amounts of cruft.
>
> Sorry, perhaps I didn't make it clear enough:
> I'm refering to the process of compiling the pkgs via Portage,
> not to using them after they have been installed.
> Both packages used noticeably less memory during the compile stage
> on the latest occasion in contrast to the previous Emerges.
>
No, you made yourself clear. I didn't. I meant the compiling, too.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] kernels & swap usage
2012-08-07 5:02 [gentoo-user] kernels & swap usage Philip Webb
2012-08-08 6:15 ` Florian Philipp
@ 2012-08-08 17:24 ` Volker Armin Hemmann
2012-08-09 16:05 ` Jesús J. Guerrero Botella
1 sibling, 1 reply; 11+ messages in thread
From: Volker Armin Hemmann @ 2012-08-08 17:24 UTC (permalink / raw
To: gentoo-user; +Cc: Philip Webb
Am Dienstag, 7. August 2012, 01:02:29 schrieb Philip Webb:
> Just an observation : when I updated Libre Office & Firefox this week,
> neither compile used swap (I have 4 GB RAM);
> OTOH when I did them the previous time, both did use swap;
> the total time & the HDD usage remained almost the same.
> In between, I updated the Kernel 3.0.0 -> 3.4.0 ,
> but made no other changes in config files etc.
>
> Does anyone have thoughts re the effect of kernel versions on swapping ?
different kernel versions are more or less swap happy. Has always been the
case.
(I remember 2.2.10 - extreme swapping even with lots of ram... and 2.2.14 - no
swapping at all...)
--
#163933
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] kernels & swap usage
2012-08-08 17:24 ` Volker Armin Hemmann
@ 2012-08-09 16:05 ` Jesús J. Guerrero Botella
2012-08-09 16:23 ` Philip Webb
0 siblings, 1 reply; 11+ messages in thread
From: Jesús J. Guerrero Botella @ 2012-08-09 16:05 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 365 bytes --]
http://people.gnome.org/~michael/blog/2012-08-08-libreoffice-3-6-0.html
As someone said, a lot of legacy code is being removed/cleaned/simplyfied.
Kernel could be an issue when it comes to swappiness, but not when it comes
to the amount of ,memory that a given version of $CC will use to compile a
given package, provided that $HARDWARE and $CFLAGS are constant.
[-- Attachment #2: Type: text/html, Size: 472 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] kernels & swap usage
2012-08-09 16:05 ` Jesús J. Guerrero Botella
@ 2012-08-09 16:23 ` Philip Webb
2012-08-10 6:56 ` Jesús J. Guerrero Botella
0 siblings, 1 reply; 11+ messages in thread
From: Philip Webb @ 2012-08-09 16:23 UTC (permalink / raw
To: gentoo-user
120809 Jesús J. Guerrero Botella wrote:
> http://people.gnome.org/~michael/blog/2012-08-08-libreoffice-3-6-0.html
Yes, I read that c 2 hr ago (smile).
> As someone said, a lot of legacy code is being removed/cleaned/simplified.
It doesn't explain why I saw the same effect with Firefox 14.1 :
perhaps there's been some code-cleaning there too.
> Kernel could be an issue when it comes to swappiness,
> but not when it comes to the amount of memory
> a given version of $CC will use to compile a given package,
> provided that $HARDWARE and $CFLAGS are constant.
That's what I suspected, but wasn't sure about.
Any other thoughts are welcome.
--
========================,,============================================
SUPPORT ___________//___, Philip Webb
ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto
TRANSIT `-O----------O---' purslowatchassdotutorontodotca
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] kernels & swap usage
2012-08-09 16:23 ` Philip Webb
@ 2012-08-10 6:56 ` Jesús J. Guerrero Botella
2012-08-10 15:27 ` Florian Philipp
0 siblings, 1 reply; 11+ messages in thread
From: Jesús J. Guerrero Botella @ 2012-08-10 6:56 UTC (permalink / raw
To: gentoo-user
It could be anything. Maybe some orphaned process was running in the
background and leaking ram, or something. It's futile to speculate now
about that.
Also, the -recently added- "pgo" USE flag could have something to do
with that. Not sure, since I didn't bother to investigate it's true
purpose on firefox.
I really don't think that the kernel has changed in a significant way
in this regard since the latests 2.6.x releases. But I certainly
didn't read *all* the kernel changelogs.
--
Jesús Guerrero Botella
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] kernels & swap usage
2012-08-10 6:56 ` Jesús J. Guerrero Botella
@ 2012-08-10 15:27 ` Florian Philipp
2012-08-10 15:59 ` Michael Mol
0 siblings, 1 reply; 11+ messages in thread
From: Florian Philipp @ 2012-08-10 15:27 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1165 bytes --]
Am 10.08.2012 08:56, schrieb Jesús J. Guerrero Botella:
> It could be anything. Maybe some orphaned process was running in the
> background and leaking ram, or something. It's futile to speculate now
> about that.
>
> Also, the -recently added- "pgo" USE flag could have something to do
> with that. Not sure, since I didn't bother to investigate it's true
> purpose on firefox.
>
It does two compilations with a headless firefox benchmark in between.
Except of doubling the compilation time, there is little difference in
the compilation itself.
> I really don't think that the kernel has changed in a significant way
> in this regard since the latests 2.6.x releases. But I certainly
> didn't read *all* the kernel changelogs.
>
The latest thing of any significance I can think of is the removal of
lumpy reclaim in 3.4 which has something to do with reducing memory
fragmentation in systems under memory stress. LWN has a subscriber-only
article about the change causing performance regressions. From my
understanding of the code, I doubt it could cause an improvement in this
particular situation.
Regards,
Florian Philipp
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] kernels & swap usage
2012-08-10 15:27 ` Florian Philipp
@ 2012-08-10 15:59 ` Michael Mol
2012-08-10 17:24 ` Philip Webb
0 siblings, 1 reply; 11+ messages in thread
From: Michael Mol @ 2012-08-10 15:59 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1695 bytes --]
On Fri, Aug 10, 2012 at 11:27 AM, Florian Philipp <lists@binarywings.net>wrote:
> Am 10.08.2012 08:56, schrieb Jesús J. Guerrero Botella:
> > It could be anything. Maybe some orphaned process was running in the
> > background and leaking ram, or something. It's futile to speculate now
> > about that.
> >
> > Also, the -recently added- "pgo" USE flag could have something to do
> > with that. Not sure, since I didn't bother to investigate it's true
> > purpose on firefox.
> >
>
> It does two compilations with a headless firefox benchmark in between.
> Except of doubling the compilation time, there is little difference in
> the compilation itself.
>
It enables profile-based optimizations. The resulting binary is much
faster, in my subjective experience.
>
> > I really don't think that the kernel has changed in a significant way
> > in this regard since the latests 2.6.x releases. But I certainly
> > didn't read *all* the kernel changelogs.
> >
>
> The latest thing of any significance I can think of is the removal of
> lumpy reclaim in 3.4 which has something to do with reducing memory
> fragmentation in systems under memory stress. LWN has a subscriber-only
> article about the change causing performance regressions. From my
> understanding of the code, I doubt it could cause an improvement in this
> particular situation.
>
I honestly think anyone having difficulties with swap should check out the
vm.swappiness sysctl before looking anywhere else. Setting it to 0 is much
like removing swap...except you still have the swap space if you actually
need it. On my work laptop, it looks like it defaults to a value of 60.
--
:wq
[-- Attachment #2: Type: text/html, Size: 2274 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] kernels & swap usage
2012-08-10 15:59 ` Michael Mol
@ 2012-08-10 17:24 ` Philip Webb
0 siblings, 0 replies; 11+ messages in thread
From: Philip Webb @ 2012-08-10 17:24 UTC (permalink / raw
To: gentoo-user
120810 Michael Mol wrote:
> On Aug 10, 2012 at 11:27 AM, Florian Philipp <lists@binarywings.net>wrote:
>> The latest thing of any significance I can think of
>> is the removal of lumpy reclaim in 3.4
>> which has something to do with reducing memory fragmentation
>> in systems under memory stress. LWN has a subscriber-only article
>> about the change causing performance regressions.
>> I doubt it could cause an improvement in this particular situation.
On my system, swapping was eliminated after installing Kernel 3.4.0 .
> I honestly think anyone having difficulties with swap should check out
> the vm.swappiness sysctl before looking anywhere else.
> Setting it to 0 is much like removing swap,
> except you still have the swap space if you actually need it.
> On my work laptop, it looks like it defaults to a value of 60.
For some years, I have set swappiness at 10 .
My best guess after the various comments (thanks)
is that it resulted from the code clean-up in Libre Office
& that my memory was faulty in believing it had also happened with Firefox.
It shouldn't have happened previously, as I have 4 GB RAM
& lots of temporary disk space for Portage to use.
--
========================,,============================================
SUPPORT ___________//___, Philip Webb
ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto
TRANSIT `-O----------O---' purslowatchassdotutorontodotca
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2012-08-10 17:25 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-07 5:02 [gentoo-user] kernels & swap usage Philip Webb
2012-08-08 6:15 ` Florian Philipp
2012-08-08 9:33 ` Philip Webb
2012-08-08 13:34 ` Florian Philipp
2012-08-08 17:24 ` Volker Armin Hemmann
2012-08-09 16:05 ` Jesús J. Guerrero Botella
2012-08-09 16:23 ` Philip Webb
2012-08-10 6:56 ` Jesús J. Guerrero Botella
2012-08-10 15:27 ` Florian Philipp
2012-08-10 15:59 ` Michael Mol
2012-08-10 17:24 ` Philip Webb
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox