Skip to content
atomreforgePublic

About

a simple windows tool to spare ram.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

memtrim

a simple C tool to spare ram space. designed for windows

implementation

the core of the program is NtSetSystemInformation, a native api in ntdll.dll that serves as a bridge between user mode and kernel mode.

PFN_NtSetSystemInformation ntSet = 
    (PFN_NtSetSystemInformation)GetProcAddress(ntdll, "NtSetSystemInformation");

details

step command value operation
empty working sets MEM_EMPTY_WORKINGSETS (2) strip inactive physical pages from all process working sets
flush modified pages MEM_FLUSH_MODIFIED (3) forces all dirty pages in the modified list to be written to disk
purge standby list MEM_PURGE_STANDBY (4) directly discards or zeroes pages in the standby list

About

a simple windows tool to spare ram.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages