cifsd-team / ksmbd

ksmbd kernel server(SMB/CIFS server)
154 stars 23 forks source link

ksmbd direct io #607

Closed maroonpu closed 10 months ago

maroonpu commented 10 months ago

Hi, does ksmbd support direct io mode?

namjaejeon commented 10 months ago

@maroonpu Why do you need it ? and Is it possible with samba ?

maroonpu commented 10 months ago

yah, my device's memory is small, causing it to swap pagecache a lot of time, so I thought I'd try it with DIO. However, after kernel_write and kernel_read are modified to implement DIO-like functions, pagecache is not generated. However, direct disk operation is too slow.