On Fri, Aug 7, 2020 at 3:03 PM Predrag Radovic <[email protected]> wrote:

>
>
>  By deallocation of unused blocks I'm referring to the hole punching. Here
> is the demo:
> https://gist.github.com/crackleware/e01519f4ec16fcba42f5c2bb6151185f
> I'll make better demo with much bigger memory usage to trigger and test the
> paging, so we know our assumptions are correct.
>

The next obvious test is to allocate 256MB chunks, fill them with a test
pattern, and keep doing that till RAM runs out.  Will the oldest untouched
blocks be automatically flushed to disk? Will the system start thrashing
instead? Will there be some error because maybe mmap won't automatically
shrink RAM usage?

You might want to do this in a container, so that you don't accidentally
render your desktop inoperable :-) Or do the test on some old victim
machine that you can trash and reboot.

Might want to run iostat and vmstat while you do this...

--linas

-- 
You received this message because you are subscribed to the Google Groups 
"opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/opencog/CAHrUA379EtNf%3DaO%2B8VgWMSMBF3vVt6FB%3DU4mU7yC_ZMm2VrYOw%40mail.gmail.com.

Reply via email to