All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [lm-sensors] Fancontrol memory consumption
@ 2014-11-05 16:57 Jean Delvare
  2014-11-07  9:15 ` Jean Delvare
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: Jean Delvare @ 2014-11-05 16:57 UTC (permalink / raw)
  To: lm-sensors

On Wed, 5 Nov 2014 10:57:48 +0100, Jean Delvare wrote:
> On Tue, 04 Nov 2014 10:20:42 +0100, Taz wrote:
> > Am I wrong ? Do someone have any clue or suggestion ?
> 
> Most likely the leak is in bash itself and fancontrol is only exposing
> it.
> 
> Which version of bash are you using? Try with different versions and
> see if they all behave the same.

As I can reproduce the issue, I tried it myself, and my results are as
follows:
bash 3.0.16: Memory consumption (RSS) is steady
bash 3.1.14: Memory consumption (RSS) increases
bash 4.2.53: Memory consumption (RSS) increases
bash 4.3.30: Memory consumption (RSS) increases

So apparently this is a regression introduced in bash 3.1 and not fixed
yet.

-- 
Jean Delvare
SUSE L3 Support

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

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

* Re: [lm-sensors] Fancontrol memory consumption
  2014-11-05 16:57 [lm-sensors] Fancontrol memory consumption Jean Delvare
@ 2014-11-07  9:15 ` Jean Delvare
  2014-11-13 14:36 ` Taz
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Jean Delvare @ 2014-11-07  9:15 UTC (permalink / raw)
  To: lm-sensors

On Wed, 5 Nov 2014 17:57:29 +0100, Jean Delvare wrote:
> As I can reproduce the issue, I tried it myself, and my results are as
> follows:
> bash 3.0.16: Memory consumption (RSS) is steady
> bash 3.1.14: Memory consumption (RSS) increases
> bash 4.2.53: Memory consumption (RSS) increases
> bash 4.3.30: Memory consumption (RSS) increases
> 
> So apparently this is a regression introduced in bash 3.1 and not fixed
> yet.

I have created a ticket to track this issue:

http://www.lm-sensors.org/ticket/2391

After discussing the issue with upstream bash maintainer Chet Ramey,
this is not a memory leak and works as intended, even though this
behavior is undesirable in the case of the fancontrol script.

Taz, feel free to try the following experimental patch for the time
being, I believe it should solve the increasing memory consumption
issue:

---
 prog/pwm/fancontrol |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- lm-sensors.orig/prog/pwm/fancontrol	2014-11-05 22:59:21.823226428 +0100
+++ lm-sensors/prog/pwm/fancontrol	2014-11-07 09:52:14.178257104 +0100
@@ -546,7 +546,7 @@ function UpdateFanSpeeds
 		  	echo $minsa > $pwmo
 			# Sleep while still handling signals
 			sleep 1 &
-			wait $!
+			wait
 		  fi
 		fi
 		echo $pwmval > $pwmo # write new value to pwm output
@@ -585,5 +585,5 @@ do
 	UpdateFanSpeeds
 	# Sleep while still handling signals
 	sleep $INTERVAL &
-	wait $!
+	wait
 done


-- 
Jean Delvare
SUSE L3 Support

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

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

* Re: [lm-sensors] Fancontrol memory consumption
  2014-11-05 16:57 [lm-sensors] Fancontrol memory consumption Jean Delvare
  2014-11-07  9:15 ` Jean Delvare
@ 2014-11-13 14:36 ` Taz
  2015-02-28 10:14 ` Jean Delvare
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Taz @ 2014-11-13 14:36 UTC (permalink / raw)
  To: lm-sensors

(sorry I just saw my reply still was in my drafts, don't know why...)

Indeed : my current bash version is 4.3.11
Although I don't have line 585 in my fancontrol script
I can apply the the patch (lines 497 & 536 for fancontrol v0.7)

I also gave it a try without the wait lines and not sending to 
background the previous
sleep command the wait was waiting for anyway (useless ?)

=> Mem consumption seems to be the same in all cases, we'll see in the 
long run...

Thanks !

     Cédric L.M.

Le 07/11/2014 10:15, Jean Delvare a écrit :
> On Wed, 5 Nov 2014 17:57:29 +0100, Jean Delvare wrote:
>> As I can reproduce the issue, I tried it myself, and my results are as
>> follows:
>> bash 3.0.16: Memory consumption (RSS) is steady
>> bash 3.1.14: Memory consumption (RSS) increases
>> bash 4.2.53: Memory consumption (RSS) increases
>> bash 4.3.30: Memory consumption (RSS) increases
>>
>> So apparently this is a regression introduced in bash 3.1 and not fixed
>> yet.
> I have created a ticket to track this issue:
>
> http://www.lm-sensors.org/ticket/2391
>
> After discussing the issue with upstream bash maintainer Chet Ramey,
> this is not a memory leak and works as intended, even though this
> behavior is undesirable in the case of the fancontrol script.
>
> Taz, feel free to try the following experimental patch for the time
> being, I believe it should solve the increasing memory consumption
> issue:
>
> ---
>   prog/pwm/fancontrol |    4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> --- lm-sensors.orig/prog/pwm/fancontrol	2014-11-05 22:59:21.823226428 +0100
> +++ lm-sensors/prog/pwm/fancontrol	2014-11-07 09:52:14.178257104 +0100
> @@ -546,7 +546,7 @@ function UpdateFanSpeeds
>   		  	echo $minsa > $pwmo
>   			# Sleep while still handling signals
>   			sleep 1 &
> -			wait $!
> +			wait
>   		  fi
>   		fi
>   		echo $pwmval > $pwmo # write new value to pwm output
> @@ -585,5 +585,5 @@ do
>   	UpdateFanSpeeds
>   	# Sleep while still handling signals
>   	sleep $INTERVAL &
> -	wait $!
> +	wait
>   done
>
>


_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

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

* Re: [lm-sensors] Fancontrol memory consumption
  2014-11-05 16:57 [lm-sensors] Fancontrol memory consumption Jean Delvare
  2014-11-07  9:15 ` Jean Delvare
  2014-11-13 14:36 ` Taz
@ 2015-02-28 10:14 ` Jean Delvare
  2015-02-28 12:39 ` Taz
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Jean Delvare @ 2015-02-28 10:14 UTC (permalink / raw)
  To: lm-sensors

Hi Taz,

On Thu, 13 Nov 2014 15:36:32 +0100, Taz wrote:
> (sorry I just saw my reply still was in my drafts, don't know why...)
> 
> Indeed : my current bash version is 4.3.11
> Although I don't have line 585 in my fancontrol script
> I can apply the the patch (lines 497 & 536 for fancontrol v0.7)

The "patch" command can apply patch files with offsets just fine.

> I also gave it a try without the wait lines and not sending to 
> background the previous
> sleep command the wait was waiting for anyway (useless ?)

Not sending sleep in the background reportedly caused delays or
undesirable behavior on system suspend or shutdown on some systems. See:
http://www.lm-sensors.org/changeset/4443/lm-sensors/branches/lm-sensors-3.0.0/prog/pwm/fancontrol

> => Mem consumption seems to be the same in all cases, we'll see in the 
> long run...

I discussed the issue with the upstream bash maintainer, but he claims
that the implementation is correct and required for Posix compliance.
My own tests were confusing (sometimes I could reproduce the issue,
sometimes not) so I couldn't reach a definitive conclusion, and
ultimately I forgot about it / gave up on it.

Meanwhile someone contributed a trick to the healthd script which may
work just fine here too. It avoids both the call to an external command
and the use of wait. Can you please revert the previous patch and give
a try to this one instead?

---
 prog/pwm/fancontrol |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

--- lm-sensors.orig/prog/pwm/fancontrol	2014-11-17 09:16:14.657054963 +0100
+++ lm-sensors/prog/pwm/fancontrol	2015-02-28 11:03:32.958562604 +0100
@@ -545,8 +545,7 @@ function UpdateFanSpeeds
 		  then # if fan was stopped start it using a safe value
 		  	echo $minsa > $pwmo
 			# Sleep while still handling signals
-			sleep 1 &
-			wait $!
+			read -t 1 -N 0
 		  fi
 		fi
 		echo $pwmval > $pwmo # write new value to pwm output
@@ -584,6 +583,5 @@ while true
 do
 	UpdateFanSpeeds
 	# Sleep while still handling signals
-	sleep $INTERVAL &
-	wait $!
+	read -t $INTERVAL -N 0
 done

Thanks,
-- 
Jean Delvare
SUSE L3 Support

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

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

* Re: [lm-sensors] Fancontrol memory consumption
  2014-11-05 16:57 [lm-sensors] Fancontrol memory consumption Jean Delvare
                   ` (2 preceding siblings ...)
  2015-02-28 10:14 ` Jean Delvare
@ 2015-02-28 12:39 ` Taz
  2015-02-28 13:13 ` Taz
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Taz @ 2015-02-28 12:39 UTC (permalink / raw)
  To: lm-sensors

Hi Jean,

Besides it looked strange, it didn't bother me enough so I stopped 
monitoring and kind of gave it up too...
But I'll certainly give the new patch a try (and restart monitoring), 
and give you feedback of course.

Thanks a lot !

     Taz (Cédric L.M.)


Le 28/02/2015 11:14, Jean Delvare a écrit :
> Hi Taz,
>
> On Thu, 13 Nov 2014 15:36:32 +0100, Taz wrote:
>> (sorry I just saw my reply still was in my drafts, don't know why...)
>>
>> Indeed : my current bash version is 4.3.11
>> Although I don't have line 585 in my fancontrol script
>> I can apply the the patch (lines 497 & 536 for fancontrol v0.7)
> The "patch" command can apply patch files with offsets just fine.
>
>> I also gave it a try without the wait lines and not sending to
>> background the previous
>> sleep command the wait was waiting for anyway (useless ?)
> Not sending sleep in the background reportedly caused delays or
> undesirable behavior on system suspend or shutdown on some systems. See:
> http://www.lm-sensors.org/changeset/4443/lm-sensors/branches/lm-sensors-3.0.0/prog/pwm/fancontrol
>
>> => Mem consumption seems to be the same in all cases, we'll see in the
>> long run...
> I discussed the issue with the upstream bash maintainer, but he claims
> that the implementation is correct and required for Posix compliance.
> My own tests were confusing (sometimes I could reproduce the issue,
> sometimes not) so I couldn't reach a definitive conclusion, and
> ultimately I forgot about it / gave up on it.
>
> Meanwhile someone contributed a trick to the healthd script which may
> work just fine here too. It avoids both the call to an external command
> and the use of wait. Can you please revert the previous patch and give
> a try to this one instead?
>
> ---
>   prog/pwm/fancontrol |    6 ++----
>   1 file changed, 2 insertions(+), 4 deletions(-)
>
> --- lm-sensors.orig/prog/pwm/fancontrol	2014-11-17 09:16:14.657054963 +0100
> +++ lm-sensors/prog/pwm/fancontrol	2015-02-28 11:03:32.958562604 +0100
> @@ -545,8 +545,7 @@ function UpdateFanSpeeds
>   		  then # if fan was stopped start it using a safe value
>   		  	echo $minsa > $pwmo
>   			# Sleep while still handling signals
> -			sleep 1 &
> -			wait $!
> +			read -t 1 -N 0
>   		  fi
>   		fi
>   		echo $pwmval > $pwmo # write new value to pwm output
> @@ -584,6 +583,5 @@ while true
>   do
>   	UpdateFanSpeeds
>   	# Sleep while still handling signals
> -	sleep $INTERVAL &
> -	wait $!
> +	read -t $INTERVAL -N 0
>   done
>
> Thanks,


_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

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

* Re: [lm-sensors] Fancontrol memory consumption
  2014-11-05 16:57 [lm-sensors] Fancontrol memory consumption Jean Delvare
                   ` (3 preceding siblings ...)
  2015-02-28 12:39 ` Taz
@ 2015-02-28 13:13 ` Taz
  2015-03-02  7:39 ` Jean Delvare
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Taz @ 2015-02-28 13:13 UTC (permalink / raw)
  To: lm-sensors


I had to revert to first patch set : new patch consumes 30%  CPU
on my system (or 6% global CPU on Atom D510@1.66GHz).

I let it ran a few minutes from 13h56 to 14h00, then when seeing 
abnormal CPU consumption, I reverted it.





Taz (Cédric L.M.)

Le 28/02/2015 13:39, Taz a écrit :
> Hi Jean,
>
> Besides it looked strange, it didn't bother me enough so I stopped 
> monitoring and kind of gave it up too...
> But I'll certainly give the new patch a try (and restart monitoring), 
> and give you feedback of course.
>
> Thanks a lot !
>
>     Taz (Cédric L.M.)
>
>
> Le 28/02/2015 11:14, Jean Delvare a écrit :
>> Hi Taz,
>>
>> On Thu, 13 Nov 2014 15:36:32 +0100, Taz wrote:
>>> (sorry I just saw my reply still was in my drafts, don't know why...)
>>>
>>> Indeed : my current bash version is 4.3.11
>>> Although I don't have line 585 in my fancontrol script
>>> I can apply the the patch (lines 497 & 536 for fancontrol v0.7)
>> The "patch" command can apply patch files with offsets just fine.
>>
>>> I also gave it a try without the wait lines and not sending to
>>> background the previous
>>> sleep command the wait was waiting for anyway (useless ?)
>> Not sending sleep in the background reportedly caused delays or
>> undesirable behavior on system suspend or shutdown on some systems. See:
>> http://www.lm-sensors.org/changeset/4443/lm-sensors/branches/lm-sensors-3.0.0/prog/pwm/fancontrol 
>>
>>
>>> => Mem consumption seems to be the same in all cases, we'll see in the
>>> long run...
>> I discussed the issue with the upstream bash maintainer, but he claims
>> that the implementation is correct and required for Posix compliance.
>> My own tests were confusing (sometimes I could reproduce the issue,
>> sometimes not) so I couldn't reach a definitive conclusion, and
>> ultimately I forgot about it / gave up on it.
>>
>> Meanwhile someone contributed a trick to the healthd script which may
>> work just fine here too. It avoids both the call to an external command
>> and the use of wait. Can you please revert the previous patch and give
>> a try to this one instead?
>>
>> ---
>>   prog/pwm/fancontrol |    6 ++----
>>   1 file changed, 2 insertions(+), 4 deletions(-)
>>
>> --- lm-sensors.orig/prog/pwm/fancontrol    2014-11-17 
>> 09:16:14.657054963 +0100
>> +++ lm-sensors/prog/pwm/fancontrol    2015-02-28 11:03:32.958562604 
>> +0100
>> @@ -545,8 +545,7 @@ function UpdateFanSpeeds
>>             then # if fan was stopped start it using a safe value
>>                 echo $minsa > $pwmo
>>               # Sleep while still handling signals
>> -            sleep 1 &
>> -            wait $!
>> +            read -t 1 -N 0
>>             fi
>>           fi
>>           echo $pwmval > $pwmo # write new value to pwm output
>> @@ -584,6 +583,5 @@ while true
>>   do
>>       UpdateFanSpeeds
>>       # Sleep while still handling signals
>> -    sleep $INTERVAL &
>> -    wait $!
>> +    read -t $INTERVAL -N 0
>>   done
>>
>> Thanks,
>

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

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

* Re: [lm-sensors] Fancontrol memory consumption
  2014-11-05 16:57 [lm-sensors] Fancontrol memory consumption Jean Delvare
                   ` (4 preceding siblings ...)
  2015-02-28 13:13 ` Taz
@ 2015-03-02  7:39 ` Jean Delvare
  2015-03-02 10:30 ` Jean Delvare
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Jean Delvare @ 2015-03-02  7:39 UTC (permalink / raw)
  To: lm-sensors

Hi Taz,

On Sat, 28 Feb 2015 14:13:07 +0100, Taz wrote:
> 
> I had to revert to first patch set : new patch consumes 30%  CPU
> on my system (or 6% global CPU on Atom D510@1.66GHz).
> 
> I let it ran a few minutes from 13h56 to 14h00, then when seeing 
> abnormal CPU consumption, I reverted it.

Yes, I see the same here :( What happens is that there is no stdin to
read from when the script is run by systemd, so the read command
returns immediately with an error instead of actually waiting.

I'll revert to the previous solution for now, finish the investigation
and see if I can come up with something better, report to upstream
again if needed, and commit the result.

Thanks,
-- 
Jean Delvare
SUSE L3 Support

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

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

* Re: [lm-sensors] Fancontrol memory consumption
  2014-11-05 16:57 [lm-sensors] Fancontrol memory consumption Jean Delvare
                   ` (5 preceding siblings ...)
  2015-03-02  7:39 ` Jean Delvare
@ 2015-03-02 10:30 ` Jean Delvare
  2015-03-02 11:05 ` Taz
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Jean Delvare @ 2015-03-02 10:30 UTC (permalink / raw)
  To: lm-sensors

On Thu, 13 Nov 2014 15:36:32 +0100, Taz wrote:
> (sorry I just saw my reply still was in my drafts, don't know why...)
> 
> Indeed : my current bash version is 4.3.11
> Although I don't have line 585 in my fancontrol script
> I can apply the the patch (lines 497 & 536 for fancontrol v0.7)
> 
> I also gave it a try without the wait lines and not sending to 
> background the previous
> sleep command the wait was waiting for anyway (useless ?)
> 
> => Mem consumption seems to be the same in all cases, we'll see in the 
> long run...

BTW, can you please tell me
* Which architecture this is (x86 or x86-64)?
* The value of "ulimit -u" on this system.
* The total amount of memory on the system.

As Chet Ramey explained to me, the memory consumption is bound and the
default limit depends on these factors. Assuming an x86-64 system,
eating 22 MB of memory as you reported would take about 734000 records
of 32 bytes each, and "ulimit -u" would be set to that value by default
for a system with about 187 GB of memory. Which I would not expect in a
NAS, so something is wrong.

-- 
Jean Delvare
SUSE L3 Support

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

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

* Re: [lm-sensors] Fancontrol memory consumption
  2014-11-05 16:57 [lm-sensors] Fancontrol memory consumption Jean Delvare
                   ` (6 preceding siblings ...)
  2015-03-02 10:30 ` Jean Delvare
@ 2015-03-02 11:05 ` Taz
  2015-03-02 12:26 ` Jean Delvare
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Taz @ 2015-03-02 11:05 UTC (permalink / raw)
  To: lm-sensors

Le 02/03/2015 11:30, Jean Delvare a écrit :
> On Thu, 13 Nov 2014 15:36:32 +0100, Taz wrote:
>> (sorry I just saw my reply still was in my drafts, don't know why...)
>>
>> Indeed : my current bash version is 4.3.11
>> Although I don't have line 585 in my fancontrol script
>> I can apply the the patch (lines 497 & 536 for fancontrol v0.7)
>>
>> I also gave it a try without the wait lines and not sending to
>> background the previous
>> sleep command the wait was waiting for anyway (useless ?)
>>
>> => Mem consumption seems to be the same in all cases, we'll see in the
>> long run...
> BTW, can you please tell me
> * Which architecture this is (x86 or x86-64)?
> * The value of "ulimit -u" on this system.
> * The total amount of memory on the system.
>
> As Chet Ramey explained to me, the memory consumption is bound and the
> default limit depends on these factors. Assuming an x86-64 system,
> eating 22 MB of memory as you reported would take about 734000 records
> of 32 bytes each, and "ulimit -u" would be set to that value by default
> for a system with about 187 GB of memory. Which I would not expect in a
> NAS, so something is wrong.
>

The hardware is actually a ReadyNAS ultra 6000 with 2GB RAM.
I'm running a x86_64 ubuntu server 14.04 with 3.16 SMP kernel
and fancontrol from standard repos (pkg vers is 1:3.3.4-2ubuntu1).

=======

\x12(root@ReadyNAS:pts/0)\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12# 
ulimit -u
     7892

(root@ReadyNAS:pts/0)\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12\x12#free
                  total       used       free     shared buffers     cached
     Mem:       2039828    1829656     210172        708 4796    1091516
     -/+ buffers/cache:     733344    1306484
     Swap:      5242876          0    5242876


_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

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

* Re: [lm-sensors] Fancontrol memory consumption
  2014-11-05 16:57 [lm-sensors] Fancontrol memory consumption Jean Delvare
                   ` (7 preceding siblings ...)
  2015-03-02 11:05 ` Taz
@ 2015-03-02 12:26 ` Jean Delvare
  2015-03-02 18:10 ` Taz
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Jean Delvare @ 2015-03-02 12:26 UTC (permalink / raw)
  To: lm-sensors

T24gTW9uLCAwMiBNYXIgMjAxNSAxMjowNTowOSArMDEwMCwgVGF6IHdyb3RlOgo+IExlIDAyLzAz
LzIwMTUgMTE6MzAsIEplYW4g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My4xMSBpcyBnZXR0aW5nIG9sZCwgdGhlcmUgaGF2ZQpiZWVu
IDIyIHVwc3RyZWFtIGZpeGVzIG1lYW53aGlsZSAobGF0ZXN0IHN0YWJsZSB2ZXJzaW9uIGlzIDQu
My4zMy4pCk1heWJlIGEgbW9yZSByZWNlbnQgdmVyc2lvbiBpcyBhdmFpbGFibGUgZm9yIHlvdXIg
c3lzdGVtIG5vdz8gVGhpcwpjb3VsZCBhbHNvIGJlIGEgYnVnIHNwZWNpZmljIHRvIHRoZSBVYnVu
dHUgYmFzaCBwYWNrYWdlIHlvdSdyZSBydW5uaW5nLAp3aG8ga25vd3MuCgotLSAKSmVhbiBEZWx2
YXJlClNVU0UgTDMgU3VwcG9ydAoKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX18KbG0tc2Vuc29ycyBtYWlsaW5nIGxpc3QKbG0tc2Vuc29yc0BsbS1zZW5zb3Jz
Lm9yZwpodHRwOi8vbGlzdHMubG0tc2Vuc29ycy5vcmcvbWFpbG1hbi9saXN0aW5mby9sbS1zZW5z
b3Jz

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

* Re: [lm-sensors] Fancontrol memory consumption
  2014-11-05 16:57 [lm-sensors] Fancontrol memory consumption Jean Delvare
                   ` (8 preceding siblings ...)
  2015-03-02 12:26 ` Jean Delvare
@ 2015-03-02 18:10 ` Taz
  2015-06-01 13:32 ` Jean Delvare
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Taz @ 2015-03-02 18:10 UTC (permalink / raw)
  To: lm-sensors

CkxlIDAyLzAzLzIwMTUgMTM6MjYsIEplYW4gRGVsdmFyZSBhIMOpY3JpdCA6Cj4gT24gTW9uLCAw
MiBNYXIgMjAxNSAxMjowNTowOSArMDEwMCwgVGF6IHdyb3RlOgo+PiBMZSAwMi8wMy8yMDE1IDEx
OjMwLCBKZWFuIERlbHZhcmUgYSDDqWNyaXQgOgo+Pj4gT24gVGh1LCAx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X19fX18KbG0tc2Vuc29ycyBtYWlsaW5nIGxpc3QKbG0tc2Vu
c29yc0BsbS1zZW5zb3JzLm9yZwpodHRwOi8vbGlzdHMubG0tc2Vuc29ycy5vcmcvbWFpbG1hbi9s
aXN0aW5mby9sbS1zZW5zb3Jz

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

* Re: [lm-sensors] Fancontrol memory consumption
  2014-11-05 16:57 [lm-sensors] Fancontrol memory consumption Jean Delvare
                   ` (9 preceding siblings ...)
  2015-03-02 18:10 ` Taz
@ 2015-06-01 13:32 ` Jean Delvare
  2015-06-01 14:47 ` Jean Delvare
  2015-06-13 18:17 ` Taz
  12 siblings, 0 replies; 14+ messages in thread
From: Jean Delvare @ 2015-06-01 13:32 UTC (permalink / raw)
  To: lm-sensors

On Mon, 02 Mar 2015 19:10:02 +0100, Taz wrote:
> For the results : yes it reached around the same mem consumption : 
> always less than 30MB,
> starting at 4MB and it looks to be the same start-up consumption as well 
> with read instead of sleep.

Looks like I managed to reproduce your problem:

00d50000-04748000 rw-p 00000000 00:00 0                                  [heap]
Size:              59360 kB
Rss:               41072 kB
Pss:               41072 kB
Shared_Clean:          0 kB
Shared_Dirty:          0 kB
Private_Clean:         0 kB
Private_Dirty:     41072 kB
Referenced:        23936 kB
Anonymous:         41072 kB
AnonHugePages:         0 kB
Swap:              18288 kB
KernelPageSize:        4 kB
MMUPageSize:           4 kB
Locked:                0 kB
VmFlags: rd wr mr mw me ac

I didn't do anything special, no idea why I couldn't see that before.
And no idea how to investigate it further :(

-- 
Jean Delvare
SUSE L3 Support

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

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

* Re: [lm-sensors] Fancontrol memory consumption
  2014-11-05 16:57 [lm-sensors] Fancontrol memory consumption Jean Delvare
                   ` (10 preceding siblings ...)
  2015-06-01 13:32 ` Jean Delvare
@ 2015-06-01 14:47 ` Jean Delvare
  2015-06-13 18:17 ` Taz
  12 siblings, 0 replies; 14+ messages in thread
From: Jean Delvare @ 2015-06-01 14:47 UTC (permalink / raw)
  To: lm-sensors

On Mon, 1 Jun 2015 15:32:41 +0200, Jean Delvare wrote:
> On Mon, 02 Mar 2015 19:10:02 +0100, Taz wrote:
> > For the results : yes it reached around the same mem consumption : 
> > always less than 30MB,
> > starting at 4MB and it looks to be the same start-up consumption as well 
> > with read instead of sleep.
> 
> Looks like I managed to reproduce your problem:
> 
> 00d50000-04748000 rw-p 00000000 00:00 0                                  [heap]
> Size:              59360 kB
> Rss:               41072 kB
> Pss:               41072 kB
> Shared_Clean:          0 kB
> Shared_Dirty:          0 kB
> Private_Clean:         0 kB
> Private_Dirty:     41072 kB
> Referenced:        23936 kB
> Anonymous:         41072 kB
> AnonHugePages:         0 kB
> Swap:              18288 kB
> KernelPageSize:        4 kB
> MMUPageSize:           4 kB
> Locked:                0 kB
> VmFlags: rd wr mr mw me ac
> 
> I didn't do anything special, no idea why I couldn't see that before.

Bah, I remember now. What I did is running the script with bash version
4.3.11, which is the one you're seeing the bug on. Probably I did that
long ago and then forgot to check the result. I'll check how
reproducible this is.

> And no idea how to investigate it further :(

-- 
Jean Delvare
SUSE L3 Support

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

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

* Re: [lm-sensors] Fancontrol memory consumption
  2014-11-05 16:57 [lm-sensors] Fancontrol memory consumption Jean Delvare
                   ` (11 preceding siblings ...)
  2015-06-01 14:47 ` Jean Delvare
@ 2015-06-13 18:17 ` Taz
  12 siblings, 0 replies; 14+ messages in thread
From: Taz @ 2015-06-13 18:17 UTC (permalink / raw)
  To: lm-sensors

Le 01/06/2015 16:47, Jean Delvare a écrit :
> On Mon, 1 Jun 2015 15:32:41 +0200, Jean Delvare wrote:
>> On Mon, 02 Mar 2015 19:10:02 +0100, Taz wrote:
>>> For the results : yes it reached around the same mem consumption :
>>> always less than 30MB,
>>> starting at 4MB and it looks to be the same start-up consumption as well
>>> with read instead of sleep.
>> Looks like I managed to reproduce your problem:
>>
>> 00d50000-04748000 rw-p 00000000 00:00 0                                  [heap]
>> Size:              59360 kB
>> Rss:               41072 kB
>> Pss:               41072 kB
>> Shared_Clean:          0 kB
>> Shared_Dirty:          0 kB
>> Private_Clean:         0 kB
>> Private_Dirty:     41072 kB
>> Referenced:        23936 kB
>> Anonymous:         41072 kB
>> AnonHugePages:         0 kB
>> Swap:              18288 kB
>> KernelPageSize:        4 kB
>> MMUPageSize:           4 kB
>> Locked:                0 kB
>> VmFlags: rd wr mr mw me ac
>>
>> I didn't do anything special, no idea why I couldn't see that before.
> Bah, I remember now. What I did is running the script with bash version
> 4.3.11, which is the one you're seeing the bug on. Probably I did that
> long ago and then forgot to check the result. I'll check how
> reproducible this is.
>
>> And no idea how to investigate it further :(
Sorry for late answer but I was quite busy lastly (I moved).

Still using the bash version you're refering to, I'm at 80 Mb usage 
after 20 days uptime:

=================
Name:   fancontrol
State:  S (sleeping)
Tgid:   1292
Ngid:   0
Pid:    1292
PPid:   1
TracerPid:      0
Uid:    0       0       0       0
Gid:    0       0       0       0
FDSize: 256
Groups: 0
VmPeak:    96472 kB
VmSize:    96472 kB
VmLck:         0 kB
VmPin:         0 kB
VmHWM:     81064 kB
VmRSS:     81064 kB
VmData:    78652 kB
VmStk:       136 kB
VmExe:       956 kB
VmLib:      2288 kB
VmPTE:       208 kB
VmSwap:        0 kB
Threads:        1
SigQ:   0/7887
SigPnd: 0000000000000000
ShdPnd: 0000000000000000
SigBlk: 0000000000000000
SigIgn: 0000000000000000
SigCgt: 0000000000016007
CapInh: 0000000000000000
CapPrm: 0000003fffffffff
CapEff: 0000003fffffffff
CapBnd: 0000003fffffffff
Seccomp:        0
Cpus_allowed:   f
Cpus_allowed_list:      0-3
Mems_allowed:   00000000,00000001
Mems_allowed_list:      0
===================

Won't paste the output as well here but /proc/..../smaps shows many 
segments, whithin which one is using 75 Mb.
(don't know if it's helpful...).

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

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

end of thread, other threads:[~2015-06-13 18:17 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-05 16:57 [lm-sensors] Fancontrol memory consumption Jean Delvare
2014-11-07  9:15 ` Jean Delvare
2014-11-13 14:36 ` Taz
2015-02-28 10:14 ` Jean Delvare
2015-02-28 12:39 ` Taz
2015-02-28 13:13 ` Taz
2015-03-02  7:39 ` Jean Delvare
2015-03-02 10:30 ` Jean Delvare
2015-03-02 11:05 ` Taz
2015-03-02 12:26 ` Jean Delvare
2015-03-02 18:10 ` Taz
2015-06-01 13:32 ` Jean Delvare
2015-06-01 14:47 ` Jean Delvare
2015-06-13 18:17 ` Taz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.