Solved Sleep function and system memory

Lusankya

New member
Local time
3:42 PM
Messages
15
OK so let me just state right off the bat that I'm not having any system issues but I found this odd.

I started using the Sleep function on the computer instead of completely shutting it down (I still shut the computer down at night though). Anyway I noticed after doing a complete start up of the system I usually have about 60 processes or so showing in the task manager and about 1.2GB of memory used.

Now after putting the system to sleep and then waking it up I notice that I still have the same amount of processes in the task manager showing up but the memory usage drops to below 1GB to around 850MB - 950MB. Does anyone else have this happen? Is this normal or is something amiss? I just kind of find this weird.
 

My Computer

OS
Windows 7 Home Premium 64bit
That's normal and nothing to be concerned about.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
home built
OS
Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
CPU
AMD Athlon II x4 620
Motherboard
Gigabyte GA-MA785G-UD3H
Memory
6GB GSkill DDR2 800
Graphics Card(s)
AMD 4670 GPU + AMD 4200 IGP
Sound Card
on board Realtek ALC889A
Monitor(s) Displays
RCA 40" LCD TV, Insignia 32" LCD TV, HP 15" LCD monitor
Screen Resolution
1680 x 1050
Hard Drives
OCZ Vertex 3 120GB,
Samsung F3 1TB (3),
Several others - WD, Seagate, Hitachi, ...
PSU
Corsair 500 W
Case
Rosewill mid tower
Cooling
CM 90mm rifle
Keyboard
Gyration wireless, Logitech wireless, Dell USB wired
Mouse
Gyration wireless, Logitech wireless, V7 USB wired
Internet Speed
Spectrum - 100Mbps D / 10Mbps U
Antivirus
Avast, MBAM3, EMET, WinPatrol
Browser
Pale Moon, Firefox, IE
Other Info
2 multi-boot PC's
Mainly HTPC/Office/Gen purpose (no gaming).
Trendnet USB KVM.
LG DVD burner/Blue Ray Player.
Tray system for removable SATA backup drives.

Not currently OCd, under-volted.
I use Hybrid sleep, rarely re-boot or shutdown.

Hauppauge HD-PVR, Avermedia PCIe TV Tuner, Hauppauge PCI TV Tuner.
Nice to hear :). Thanks for posting.
 

My Computer

OS
Windows 7 Home Premium 64bit
You're welcome.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
home built
OS
Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
CPU
AMD Athlon II x4 620
Motherboard
Gigabyte GA-MA785G-UD3H
Memory
6GB GSkill DDR2 800
Graphics Card(s)
AMD 4670 GPU + AMD 4200 IGP
Sound Card
on board Realtek ALC889A
Monitor(s) Displays
RCA 40" LCD TV, Insignia 32" LCD TV, HP 15" LCD monitor
Screen Resolution
1680 x 1050
Hard Drives
OCZ Vertex 3 120GB,
Samsung F3 1TB (3),
Several others - WD, Seagate, Hitachi, ...
PSU
Corsair 500 W
Case
Rosewill mid tower
Cooling
CM 90mm rifle
Keyboard
Gyration wireless, Logitech wireless, Dell USB wired
Mouse
Gyration wireless, Logitech wireless, V7 USB wired
Internet Speed
Spectrum - 100Mbps D / 10Mbps U
Antivirus
Avast, MBAM3, EMET, WinPatrol
Browser
Pale Moon, Firefox, IE
Other Info
2 multi-boot PC's
Mainly HTPC/Office/Gen purpose (no gaming).
Trendnet USB KVM.
LG DVD burner/Blue Ray Player.
Tray system for removable SATA backup drives.

Not currently OCd, under-volted.
I use Hybrid sleep, rarely re-boot or shutdown.

Hauppauge HD-PVR, Avermedia PCIe TV Tuner, Hauppauge PCI TV Tuner.
I suspect this is due to workset trimming.

Understand that the amount of RAM used by a process, even those belonging to the system, is not controlled by the process itself but by the memory manager. The basic principles of how this works has been documented but many of the details have not. I suspect that the memory manager doesn't know anything about the sleep function because it doesn't need to. Most likely the memory manager sees a number of processes with memory that hasn't been used recently (because the computer has been sleeping) and trims the memory they are using. This is a routine operation and can occur very quickly.

But this is all just guesswork. Since Microsoft has most likely never documented these details I can do nothing else. But I have no reason to believe that this memory difference is anything but standard operating procedure for the OS.

There are many details of how Windows works internally that has never been publicly documented. The same applies for Linux and Mac OS and other operating systems as well. There are good reasons for this. One is that if some detail is documented some developer somewhere will find a way of taking advantage of it. If the behavior were to be changed at a later date the application may break, and you can easily guess who will get the blame.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP
OS
Windows 7 Pro 64 bit
CPU
Xeon W3520
Memory
8 GB
Graphics Card(s)
Nvidia Geforce 210
Thanks for the reply LMiller7 :). That is a very nice explanation of what probably is happening. Thanks for the replies again guys :). I'm marking this thread as solved.

PS: It's always nice getting an answer from someone in the same Country and Province which doesn't happen very often lol :D.
 

My Computer

OS
Windows 7 Home Premium 64bit
Back
Top