dan, (edited )
@dan@upvote.au avatar

If you want the lowest latency, you could try NBD. It’s a block protocol but with less overhead compared to iSCSI. github.com/NetworkBlockDevice/nbd/tree/master

Like iSCSI, it exposes a disk image file, or a raw partition if you’d like (by using something like /dev/sda3 or /dev/mapper/foo as the file name). Unlike iSCSI, it’s a fairly basic protocol (the API is literally only 9 commands). iSCSI is essentially just regular SCSI over the network.

NFS and SMB have to deal with file locks, multiple readers and writers concurrently accessing the same file, permissions, etc. That can add a little bit of overhead. With iSCSI and NBD, it assumes only one client is using the file (because it’s impossible for two clients to use the same disk image at the same time - it’ll get corrupted) and it’s just reading and writing raw data.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • localhost
  • All magazines
  • 200 @ entry_comment_voters
    HTTP status 200 OK
    Route name entry_comment_voters
    Has session yes
    Stateless Check no
    Time 515 ms
    Total time 515 ms
    Initialization time 54 ms
    Memory 12.0 MiB
    Peak memory usage 12.0 MiB
    PHP memory limit 128 MiB
    Logger 86
    Errors 0
    Warnings 0
    Deprecations 86
    Cache 48 in 312.66 ms
    Cache Calls 48
    Total time 312.66 ms
    Cache hits 41 / 56 (73.21%)
    Cache writes 11
    3
    Default locale en
    Missing messages 3
    Fallback messages 0
    Defined messages 122
    Security n/a
    Authenticated No
    Firewall name main
    Twig 369 ms
    Render Time 369 ms
    Template Calls 88
    Block Calls 16
    Macro Calls 6
    59 in 338 ms
    settings_row_switch 15
    user_avatar 13
    date 6
    user_settings_row_switch 4
    magazine_inline 3
    user_inline 2
    settings_row_enum 2
    entry_comment 1
    date_edited 1
    vote 1
    boost 1
    user_actions 1
    magazine_box 1
    magazine_sub 1
    related_magazines 1
    active_users 1
    related_categories 1
    related_posts 1
    related_entries 1
    support_us_block 1
    featured_magazines 1
    14 in 286.44 ms
    Database Queries 14
    Different statements 14
    Query time 286.44 ms
    Invalid entities 0
    Cache hits 35
    Cache misses 1
    Cache puts 1
    6.4.0
    Profiler token 3c1b30
    Environment dev
    Debug enabled
    PHP version 8.2.26   View phpinfo()
    PHP Extensions Xdebug ✗ APCu ✓ OPcache ✓
    PHP SAPI apache2handler