This article investigates an undocumented Windows behavior where calling SetPriorityClass with PROCESS_MODE_BACKGROUND_BEGIN caps a process's working set at 32 MiB, causing Chrome's setup.exe to spend 99% of its CPU time in page-fault handling. The author's tests showed this can make memory scans run 250 to 800 times slower, and because trimming the working set merely moves pages to the standby list without actually saving memory, the feature achieves nothing useful. The author recommends that Microsoft remove this behavior or at least document it, noting the issue has been known since at least Windows 7 and remains unaddressed.
Memory is a relatively scarce resource on many consumer computers, so a feature to limit how much memory a process uses seems like a good idea, and Microsoft did indeed implement such a feature. However:
They didn’t document this (!)
Their implementation doesn’t actually save memory
Keep reading
Out of respect for the author only the opening is shown here. Read the rest on the original site, or in HorizonReader with highlights, notes and AI help.
AI summaryThe author continues their career retrospective, describing how they moved to Cavedog Entertainment in 1997 and discovered their talent for debugging and fixing crashes, then spent 2002-2011 at Microsoft's Xbox group, where they found a CPU design bug in the Xbox 360, optimized math functions and memory pages, and learned the ETW performance analysis skills that defined their later career. Along the way they taught at DigiPen, which transformed them from fearing public speaking to loving it, and in 2011 they joined Valve, where the flat management structure and bug-laden codebase let them fix important problems at a record pace.
AI summaryThis is the first part of the author's reflections on his 37-year software development career, beginning with his time as a university dropout who taught himself programming on the Amiga and Apple ][ in the mid-1980s. He describes writing a fast fixed-point Mandelbrot fractal explorer (MandFXP) that demonstrated his performance-estimation skills and helped him land a job at Distinctive Software working on games like Test Drive, while also developing the CygnusEd text editor as a side project. The narrative then covers his two-year round-the-world trip with his partner and his subsequent move to ASDG/Elastic Reality in Wisconsin, where he finally learned Windows, C++, and version control.
AI summaryIn 2021, the author discovered a massive memory leak in VS Code—reaching around 64 GB—despite never having used the tool, by noticing unusually high seven-digit process IDs during a remote pair-programming session with a coworker, which signaled a process-handle leak. Using Task Manager and an ETW trace, they quickly traced the leak to a missing CloseHandle call after an OpenProcess call, which leaked roughly 64 KiB per unclosed handle, and the bug was fixed within days of being reported. The author concludes by suggesting that automatic resource limits on handles and memory would help catch such bugs during testing.
AI summaryThe author discovered that Acronis True Image's shell extension (tishell64.dll) caused severe Explorer.exe slowdowns—consuming dozens of CPU seconds—whenever an external monitor was plugged or unplugged, because it repeatedly (sometimes thousands of times) enumerated all running processes via CreateToolhelp32Snapshot. Using ETW traces, WPA, and debugger breakpoint counting, he traced the issue to the Acronis DLL and contacted the company, which provided a registry-key workaround and promised a fix in the next release, while the outdated version distributed by Crucial remains affected. The author also criticizes missing file metadata in Microsoft and Acronis DLLs and recommends simply uninstalling Acronis True Image once it has served its purpose.
AI summaryThe author documents multiple Google Maps errors in British Columbia, such as 138 W 6th Ave in Vancouver being plotted 2.4 km from its real location and an address in Vernon being sent four blocks off, arguing that Google Maps lacks sanity checks (like verifying the city, street, and hundred block) when mapping addresses to parcels. The mistakes, likely caused by typos or a batch of bad data ingested around mid-March, have real consequences like late actors arriving at wrong audition locations. Reporting fixes through Google's feedback tool proved unreliable and slow, and the author calls on Google to validate incoming address data and run batch processes to catch similar errors at scale.