adriangb commented on PR #27932:
URL: https://github.com/apache/datafusion/pull/27932#issuecomment-7390808008

   I ended up going the other way and pushed a much simpler version: mimalloc 
never returns memory to the OS, and each query runs one warm-up iteration that 
we discard. No options, and the gate code is gone.
   
   Returning memory to the OS before each iteration does capture page-fault 
cost, but that cost varies a lot between runs and machines, so the results 
weren't reproducible. Never purging was the most consistent setting in every 
comparison I ran. The current default is the worst of the three: purging runs 
on a timer, so whether an iteration starts with warm memory depends on how long 
the previous one took. When interleaving, that's the other binary's iteration.
   
   The trade-off is that we under-count allocation overhead. Vortex makes the 
same choice (https://github.com/vortex-data/vortex/pull/10839), and DuckDB and 
Polars also discard a warm-up run. If someone needs to measure page faults, we 
can add a cold mode later.
   
   Wdyt?


-- 
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]

Reply via email to