DCCD Posted May 25, 2009 Share Posted May 25, 2009 Hey there, Here's my versionOSWIN_XP = ✔WIN_VISTA = I really don't know _RAMFREE() ; Func _RAMFREE() If ProcessExists("rundll32.exe") Then ProcessClose("rundll32.exe") EndIf Run("rundll32.exe advapi32.dll,ProcessIdleTasks") While 1 $mem = MemGetStats() $results = "Memory Load: " & $mem[0] &" %" & @CRLF $results &= "Total physical RAM: " & $mem[1] &" Kb" & @CRLF $results &= "Available physical RAM: " & $mem[2] &" Kb" TrayTip("RAM FREE v0.1", $results, 30, 1) Sleep(99) If Not ProcessExists("rundll32.exe") Then MsgBox(0, "RAM FREE v0.1", "complete."&@CRLF&@CRLF&$results) Exit EndIf WEnd EndFunc [u][font=Arial Black]M[/font]y Blog, AVSS Parts[/u][font=Arial Black]Else[/font][font=Arial Black]L[/font]ibya Linux Users Group Link to comment Share on other sites More sharing options...
Emiel Wieldraaijer Posted May 25, 2009 Share Posted May 25, 2009 Hi, i tried your script.. but it increased the memory load and processor load instead of freeing it . killed the script after 15 min.. or am i to impatiant ? Thnx Emiel Best regards,Emiel Wieldraaijer Link to comment Share on other sites More sharing options...
crashdemons Posted May 25, 2009 Share Posted May 25, 2009 (edited) I should suggest some more research (or at least explanation) before continuing this project...The file placement optimization, which is done no more often than once every three days, is an example of a task that is carried out when the system is deemed to be idle. System Restore and other features of Windows XP also attempt to defer some work until the system is deemed to be idle. There are also some done-once-after-setup work items that also operate under the Idle Task Scheduling mechanisms.All of these "idle tasks" are controllable by a system API in advapi32.dll, ProcessIdleTasks. The APIs sole purpose is to allow benchmarks a simple way to force any pending idle tasks to be executed immediately, without having to wait a lengthy period of time.And:When called from the command line, the ProcessIdleTasks work is done in the background asynchronously. It can take 10 to 15 minutes for idle tasks to complete. Task Manager will report processes running, and the disk will likely be active during this time.Which, as other articles state and the MS statement backs up - this doesn't decrease anything directly, if at all.It MAY keep any "Idle" scheduled tasks from running at a later time (when your system is actually idle), but it does not actively lower any significant figures while your computer is in-use.Rather, this has your computer do NOW what it would have done when you weren't using it at all.Perhaps if you had ALOT of idle processes, this would free the memory used to keep them scheduled - but that is usually an insignificant amount and, more importantly, dependent upon the user.I'm also unsure why the OP has insisted on calling this script "RAMFREE", despite it's real results.Works Cited:Microsoft <http://www.microsoft.com/whdc/system/syspe...chmark.mspx#EFF> (*Note: URL no longer valid)Microsoft, Benchmarking on Windows XP <http://www.microsoft.com/whdc/archive/benchmark.mspx> (*Note: Current URL!)Article: Article 1 Edited May 25, 2009 by crashdemons My Projects - WindowDarken (Darken except the active window) Yahsmosis Chat Client (Discontinued) StarShooter Game (Red alert! All hands to battlestations!) YMSG Protocol Support (Discontinued) Circular Keyboard and OSK example. (aka Iris KB) Target Screensaver Drive Toolbar Thingy Rollup Pro (Minimize-to-Titlebar & More!) 2D Launcher physics example Ascii Screenshot AutoIt3 Quine Example ("Is a Quine" is a Quine.) USB Lock (Another system keydrive - with a toast.) Link to comment Share on other sites More sharing options...
Bert Posted May 26, 2009 Share Posted May 26, 2009 Make a shortcut on your desktop wit this: %windir%\system32\rundll32.exe advapi32.dll,ProcessIdleTasks takes a ew seconds to run, and it will recover memory for you. Depending on what you are doing, it may not do much or it may help a bunch. Have fun! -V The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
crashdemons Posted May 26, 2009 Share Posted May 26, 2009 (edited) Only if you have any idle tasks scheduled; by the effect of getting the task over with. If you have no idle tasks to process in the first place, the effect is nil. Edited May 26, 2009 by crashdemons My Projects - WindowDarken (Darken except the active window) Yahsmosis Chat Client (Discontinued) StarShooter Game (Red alert! All hands to battlestations!) YMSG Protocol Support (Discontinued) Circular Keyboard and OSK example. (aka Iris KB) Target Screensaver Drive Toolbar Thingy Rollup Pro (Minimize-to-Titlebar & More!) 2D Launcher physics example Ascii Screenshot AutoIt3 Quine Example ("Is a Quine" is a Quine.) USB Lock (Another system keydrive - with a toast.) Link to comment Share on other sites More sharing options...
DCCD Posted May 26, 2009 Author Share Posted May 26, 2009 (edited) thanks guys, & about the script, read this. it will only take about 20 sec(s)Make a shortcut on your desktop wit this:%windir%\system32\rundll32.exe advapi32.dll,ProcessIdleTaskstakes a ew seconds to run, and it will recover memory for you. Depending on what you are doing, it may not do much or it may help a bunch. Have fun!-V Edited May 26, 2009 by DCCD [u][font=Arial Black]M[/font]y Blog, AVSS Parts[/u][font=Arial Black]Else[/font][font=Arial Black]L[/font]ibya Linux Users Group Link to comment Share on other sites More sharing options...
FinalVersion Posted May 26, 2009 Share Posted May 26, 2009 Nice job, it kind of works on windows 7 [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center] Link to comment Share on other sites More sharing options...
Bert Posted May 26, 2009 Share Posted May 26, 2009 Only if you have any idle tasks scheduled; by the effect of getting the task over with.If you have no idle tasks to process in the first place, the effect is nil.That is why I said it depended on what you were doing. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
rajeshontheweb Posted June 3, 2009 Share Posted June 3, 2009 one doubt, why is the rundll process being closed at the startup ? is it for singleton, then i would suggest calling the commandline of the process and comparing if it is our process which generated the thread. because i have noted rundll32 being run by google products in a few pcs now a days. Started late is much better than having never started it!!!!Failure is another step towards success. I've been messing around with: Adding Entry to 'Hosts'File Information Lister (Logger)Yet Another AutoIT Error Handler Yet Another AutoIT Error Handler & Debugger Control your App's TaskBar Button YCurrency Ticker (Latest Release : 16 Apr 2009)_WinInetInternetCheckConnection UDF Symantec Definitions Lister UDF _GetLocalIPAddresses UDF UDF to get Special Folder Information WMI_NetworkAdapterConfiguration2Array WMI_CDRomDriveCapabilities _ScriptExists - Check if your au3 script is running!! Uninstaller UDF Get Version for your application (at script level or compiled stage) Uninstaller Pro - faster alternative to windows application removal applet Link to comment Share on other sites More sharing options...
DCCD Posted June 4, 2009 Author Share Posted June 4, 2009 one doubt, why is the rundll process being closed at the startup ? is it for singleton, then i would suggest calling the commandline of the process and comparing if it is our process which generated the thread. because i have noted rundll32 being run by google products in a few pcs now a days. If Not ProcessExists("rundll32.exe") Then MsgBox(0, "RAM FREE v0.1", "complete."&@CRLF&@CRLF&$results) Exit [u][font=Arial Black]M[/font]y Blog, AVSS Parts[/u][font=Arial Black]Else[/font][font=Arial Black]L[/font]ibya Linux Users Group Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now