PSA: Memory leaks, using Hibernate and Suspend all of the time - it's good to reboot.

VirtualLarry

No Lifer
Aug 25, 2001
56,570
10,204
126
Every month or so, at least. I do it every time there's a major Firefox / Waterfox update, usually.

Even after shutting all of my programs down, my Commit Charge in Win7 was over 2GB, for some reason. Seemed kind of high to me. So, I rebooted. Now WITH my programs open, I'm getting similar Commit Charge numbers.

Oh, and RAM is much faster than constantly swapping to an SSD. I only have 4GB of RAM in this laptop, and my Commit Charge was nearly 5GB, and browsing was a bit... sluggish. Now it's rather snappy again, after a reboot.

(I also ordered an 8GB kit of RAM for it just a little bit ago. Good times!)
 

you2

Diamond Member
Apr 2, 2002
6,577
1,603
136
Swapping to ssd is faster but puts more stress on the ssd. use smart data to monitor the wear on the ssd and make sure your swap device support trim. Also some ssd writes are large blocks; this is important when writing many small blocks since that actually amplifies the actual writes. Not sure abuot window but most swapping devices are page driven (4k); so if your ssd only support large blocks (sometime as bad as 256K); those 4K sync writes are really expensive with regards to wear on the ssd device.
 

spat55

Senior member
Jul 2, 2013
539
5
76
I'm surprised that people use Sleep or Hibernate, I'll power mine on when used and then shut it down, if you've got a SSD it doesn't take that long to boot.
 
  • Like
Reactions: Blue_Max and corkyg

you2

Diamond Member
Apr 2, 2002
6,577
1,603
136
My linux box (which I use once a day and goes into hibernate mode when not in use) hasn't leaked memory in 2 months. Of course it runs linux so that might be part of the reason for improve stability.
 

blankslate

Diamond Member
Jun 16, 2008
8,761
543
126
Hibernate on a computer with an SSD is also waste of space used by the Hibernate file.
Since an SSD equipped computer starts up as fast a computer comes up out hibernation it's useless with an SSD.
 

you2

Diamond Member
Apr 2, 2002
6,577
1,603
136
I disagree. There are several very good reason to hibernate. Two of them include as a 'safe guard' if you forget to turn the computer off. Second it preserve the state of your system (i.e, if you are working on a project or whatever). You argue that it is a waste to hibernate since you can restart the computer just as fast. The only 'waste' is a relatively small amount of space.

Hibernate on a computer with an SSD is also waste of space used by the Hibernate file.
Since an SSD equipped computer starts up as fast a computer comes up out hibernation it's useless with an SSD.
 

daxzy

Senior member
Dec 22, 2013
393
77
101
My linux box (which I use once a day and goes into hibernate mode when not in use) hasn't leaked memory in 2 months. Of course it runs linux so that might be part of the reason for improve stability.

Oh please. Linux S3/4 states have their fair share of bugs. The most glaring being the fact that in S3 it sips way more power than the same Windows machine.

I'm surprised that people use Sleep or Hibernate, I'll power mine on when used and then shut it down, if you've got a SSD it doesn't take that long to boot.

S3/S4 states preserves the workflow? For my home/work computer, I always set it to sleep when I go to bed. I haven't noticed any memory leaks in Windows 8 or newer.
 

you2

Diamond Member
Apr 2, 2002
6,577
1,603
136
Evidence ? Please make sure the evidence includes info on a 4.4 kernel.

Oh please. Linux S3/4 states have their fair share of bugs. The most glaring being the fact that in S3 it sips way more power than the same Windows machine.
 

daxzy

Senior member
Dec 22, 2013
393
77
101
Evidence ? Please make sure the evidence includes info on a 4.4 kernel.

So Ubuntu 16.04 is based on the 4.4 kernel. I searched the Ubuntu forums and came with these just on the first page.

Answer: blame the hardware!
http://askubuntu.com/questions/793980/ubuntu-16-04-mate-draining-battery-when-powered-off

Looks like some S5 power issues simply due to WoL. Windows does NOT have this problem.
https://ubuntuforums.org/showthread.php?t=2332541
http://www.hecticgeek.com/2012/09/d...ight-save-a-tiny-bit-of-power-on-your-laptop/

Looks like you have to disable Nvidia drivers before sleep. Such a user friendly solution!
https://ubuntuforums.org/showthread.php?t=2343654

There's also a boatload more complaints about how 16.04 gets less battery life than a comparable Windows laptop. Which is totally believable because Linux ACPI and power management has always sucked compared to Windows. For my personal anecdote, I use Ubuntu 16.04.1 LTS (4.4.0-63) on a Thinkpad T430s. When in suspend, the battery drains about 10% a day. For comparison, I loaded Windows 10 (forgot build), and there was literally no battery drop after 1 day in sleep (this is with hybrid sleep disabled, because Linux by default doesn't support that).
 

you2

Diamond Member
Apr 2, 2002
6,577
1,603
136
the title of one of the thread is; note after shutdown not after suspend. BTW Under windows 7 on one of my motherboards I had HUGE power drain after shutdown; the problem was that motherboard did not shutdown usb 3 port. They considered a feature but the bios had no method to disable that feature. Not sure if windows 10 would have the same issue; my fix was to replace the motherboard.

Battery drain on Ubuntu 16.04 LTS after shutdown on HP ab549tx Laptop
-
 

Murloc

Diamond Member
Jun 24, 2008
5,382
65
91
I used the bios to disable the powered USBs on my current laptop for that reason.

But this has nothing to do with the OS.