Home » Posts tagged "c#"

O_DIRECT & O_ASYNC, Linux & Perl

I’ve written a C program that creates a 20GB file using O_DIRECT and O_ASYNC correctly. The trick to write to a file using O_DIRECT is that I have to align the buffer with respect to the memory block size. When I write a similar program...

Continue reading »

Linux O_DIRECTIO: what am I doing wrong?

I’m trying to create a file using O_DIRECT (direct I/O) but am running into a problem. If I run it as a normal user (me) I get error number 22 (invalid argument): ./dio bytes_read= 4096 write failed: Invalid argument bytes_read= 4096 write failed: Invalid argument...

Continue reading »

Facebook login by WP-FB-AutoConnect