On 2021/11/8 11:54, Fengnan Chang wrote:
In my test, serial io for compress file will make multithread small write
performance drop a lot.

I'm try to fingure out why we need __should_serialize_io, IMO, we use 
__should_serialize_io to avoid deadlock or try to
improve sequential performance, but I don't understand why we should do this for

It was introduced to avoid fragmentation of file blocks.

compressed file. In my test, if we just remove this, write same file in 
multithread will have problem, but parallel write different files in multithread

What do you mean by "write same file in multithread will have problem"?

Thanks,

is ok. So I think maybe we should use another lock to allow write different 
files in multithread.



_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Reply via email to