Showing posts with label windows 7. Show all posts
Showing posts with label windows 7. Show all posts

Sunday, 23 September 2012

windows audiodg.exe memory leak


Windows7 still have a memory leak in audiodg.exe. Unfortunately I have discovered 4 month and a 4GB memory expansion late. You can solve it restarting Windows Audio service from time to time. 

I am a linux person but my computer was too new for linux so I ended with Windows  7 professional (even for windows I needed to install a lot of samsung's drivers and still are things that does not work properly). I usually does not shut down my laptop for months (suspend to ram works OK). But with this computer I needed to restart it once a week. When it had only 4GB it was getting quickly out of memory and windows, in its big desire to be helpful in its own ways, was closing programs at will with a polite notice ('sorry your computer has low memory I am going to close some programs') but without actually allowing you to decide. I bought another 4GB memory card, and then it takes 10 days before reaching to 31GB of virtual memory plus the 8GB of real memory and start to complain. 

I thought that this was due to my abuse of firefox tabs (usually 150-200 opened tabs) and the cache problem, plus a lot of other programs in use like  thunderbird, a linux virtual machine with 2GB, word, Xmind, excel, R....

I have seen several times one process with a lot of memory but always left aside (audiodg.exe). Finally today with all 31GB  virtual memory full and some windows warnings, closed firefox and chrome and I did not see any relevant change in the memory consumed, still 29GB after 1 hour. Looking at the Processes I saw that audiodg.exe had 25GB virtual memory allocated and 2GB real memory in use!!!!

A quick google search  shows that since 2009 is well known that audiodg.exe has a memory leak and there is a hot-fix for it (unfortunately people say that it does not work with windows 7). Some folks solved the problem restarting the audio server. I went to adminitrative_tools/componet_services and searched for audiodg. It was not there but there was a windows audio service. I restarted it and then the real memory used went from 8 to 3GB and the virtual memory from 29 to 4GB!!!!!!!!!!!

My computers just after restarting Windows Audio

Wednesday, 22 February 2012

fixing disabled atheros wifi after windows7 hibernation.

While I am waiting for my new computer a coworker lend me an acer-Aspire-5535 (4GB RAM AMD Turion-X2 64). This is a cheap but nice machine when using windows7 (without fancy decorations or animations) and a virtualized Ubuntu-LXDE with virtual box.

I enjoyed the machine until I hibernate it. When started up again the system the joy disapeared: the wifi was not working (the wifi button had some sporadic flashes but no network at all). I restated the machine and wifi came back without a problem. The coworker knew the problem and lived with it for more than 3 month ( a windows update created the problem ).Solution, of the owner (a typical windows person) when no wifi after hibernation: restart it. Problem, what problem? "Restart windows and it will works fine" she said to me. But I can not live without proper hibernation. It is not only the booting time, there is also  the programs' state and the 60 firefox tabs that I don't want to reload again, and the pdfs that I am reading or using as reference etc.

PROBLEM: when windows 7 suspend to ram or hibernate, it shutdown the wifi card, but then is unable to activate it after restoring.

SOLUTION:
As a linux person I am get use to ifdown;ifup for resurrecting a collapsed wifi card/driver. In the old windows XP I believe I have use a restart network but I was unable to find it in windows 7. After a lot of googleing and reading a lot of unhelpful advises 90% giving as solution to reboot the computer (have any of them understood that if you do hibernation is because you don't want to shutdown !!), I have found a solution to avoid the reboot:

# hit win-R
# type 
services.msc
# at the bottom of the list you will find "WLAN AutoConfig"
# click on it an slect 'stop' wait click again and select start

This will activate again the wifi.

Also, in order to prevent this happening again, I am disabling the automatic turning off of the wifi device by the system. I went to 'control_panel'->network and sharing center->manage wireless network->adapter_properties->configure->power_management->"allow computer to turn off this device to save power" and unmark this option.