direct-io

Direct IO helpers for block devices and regular files on FreeBSD, Linux, macOS and Windows. (by ronomon)

Direct-io Alternatives

Similar projects and alternatives to direct-io

  1. wg-allocators

    Home of the Allocators working group: Paving a path for a standard set of allocator traits to be used in collections!

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. httpdirfs

    A filesystem which allows you to mount HTTP directory listings or a single file, with a permanent cache. Now with Airsonic / Subsonic support!

  4. imdb-rename

    A command line tool to rename media files based on titles from IMDb.

  5. project-safe-transmute

    Project group working on the "safe transmute" feature (by jswrenn)

  6. hh-suite

    Remote protein homology detection suite.

  7. MMseqs2

    MMseqs2: ultra fast and sensitive search and clustering suite

  8. libuv

    Cross-platform asynchronous I/O

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better direct-io alternative or higher similarity.

direct-io discussion

Log in or Post with

direct-io reviews and mentions

Posts with mentions or reviews of direct-io. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-01-23.
  • But How, Do Databases Use Mmap?
    5 projects | news.ycombinator.com | 23 Jan 2021
    I wrote this for Node.js, which is a native binding in C, exposing cross platform functionality: https://github.com/ronomon/direct-io

    Although if it's a new project and you're used to C, I would recommend also taking a good look at Zig (https://ziglang.org/), because it's so explicit about alignment compared to C, and makes alignment a first-class part of the type system, see this other comment of mine that goes into more detail: https://news.ycombinator.com/item?id=25801542

    Something that will also help, is setting your minimum IO unit to 4096 bytes, the Advanced Format sector size, because then your Direct IO system will just work, regardless of whether sysadmins swap disks of different sector sizes from underneath you. For example, a minimum sector size of 4096 bytes will work not only for newer AF disks but also for any 512 byte sector disks.

    Lastly, Direct IO is actually more a property of the file system, not necessarily the OS (e.g. Linux), so you will some file systems on Linux that return EINVAL when you try to open a file descriptor with O_DIRECT, simply because they don't support O_DIRECT (e.g. a macOS volume accessed from within a Linux VM) so that should be your way of testing for support, not only the OS.

Stats

Basic direct-io repo stats
1
71
0.0
about 2 years ago

ronomon/direct-io is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of direct-io is C.


Sponsored
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai

Did you know that C is
the 6th most popular programming language
based on number of references?