webkitpy: WinCairoPort.default_child_processes should return the appropriate default number of DumpRenderTree processes As discussed in Bug 192486, it should be based on the number of CPU and RAM size. Mac port has such implementation. https://github.com/WebKit/webkit/blob/9e192ff36b8e90d6361dae8b1e3022aa5c0d83e9/Tools/Scripts/webkitpy/port/mac.py#L191
Here is the return value of win32api.GlobalMemoryStatusEx() on WinCairo Docker container. > {'TotalPageFile': 39459540992L, 'AvailVirtual': 140737373986816L, 'MemoryLoad': 30, 'TotalPhys': 34359267328L, 'AvailExtendedVirtual': 0L, 'Length': 64, 'TotalVrtual': 140737488224256L, 'AvailPhys': 23751901184L, 'AvailPageFile': 29975863296L} Here is the one on my PC. > {'TotalPageFile': 39389532160L, 'AvailVirtual': 140733064794112L, 'MemoryLoad': 25, 'TotalPhys': 34289258496L, 'AvailExtendedVirtual': 0L, 'Length': 64, 'TotalVirtual': 140737488224256L, 'AvailPhys': 25691299840L, 'AvailPageFile': 26506842112L} The Docker container says it has enough RAM. Umm, I can't use this approach for Bug 188036.
Created attachment 356948 [details] WIP patch
How can Python script know if it is run on a Docker container?