marsupialtail opened a new pull request, #13662:
URL: https://github.com/apache/arrow/pull/13662

   After: https://github.com/apache/arrow/pull/13640, seems like O_DIRECT is 
not a good idea, so let's use posix_fadvise to control the page cache to 
address the issue mentioned in: 
https://issues.apache.org/jira/browse/ARROW-14635.
   
   To test it, use the simple python script below: 
   ```
   SIZE = 1024 * 1024
   N = 1024 * 10
   
   import pyarrow.fs as fs
   #da  = fs.LocalFileSystem(reuse=False) #this will turn on fadvise and 
disable page cache for the writes
   da  = fs.LocalFileSystem(reuse=True)
   s = da.open_output_stream("bump")
   a = bytes("1","utf-8") * SIZE
   for i in range(N):
       s.write(a)
   s.close()
   ```


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

Reply via email to