adriangb commented on PR #27932: URL: https://github.com/apache/datafusion/pull/27932#issuecomment-7352679501
I'm a bit torn on this: if we reset/free all memory between runs we get to measure actual page faults / memory allocation overhead, but that cost is variable and introduces inconsistency into the measurements. If we never return memory to the OS during runs we get more consistent measurements on subsequent runs *but* the first iteration/query that allocates memory pays a higher cost *and* we aren't measuring memory allocation overhead (which could be a good or a bad thing depending on what we think is more representative of real world datafusion usage). It feels to me that in an ideal world we could have both: 1. A mode that pre-allocates ALL of the memory we are allowed to use (the memory limit? the k8s request on the benchmark runner when there is no limit?) and thus we never get memory from the OS. This is not unrealistic, plenty of databases _prefer_ to operate in this mode. 2. A mode that returns all memory to the OS after each iteration/query and hits page faults, etc. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
