[LTP] [PATCH 1/4] controllers/memcg: update stress test to work under cgroup2

Cyril Hrubis chrubis@suse.cz
Fri Dec 10 11:45:16 CET 2021


Hi!
> > Let me know what you think. I wouldn't want to add anything huge to the API
> > without your blessing :)
> 
> Wouldn't it be easier to rewrite these test to the C then? I think that
> error handling in shell CGroup tests would always be more difficuilt
> than in C and given that we have a nice library for C it actually sounds
> like a better solution.

Also not to mention other problems, in shell you actually need at least
one fork to do anything which isn't ideal when you are stress testing
memory, which means that the fork() may fail. While in C you just call a
syscall which is less likely to fail or be stalled due to the load...

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list