Coder Social home page Coder Social logo

Comments (2)

tarlano avatar tarlano commented on May 18, 2024

I had the volume block_size set to a small 1KB. After increasing it back to the default 1.04MB I am seeing better performance and possibly it will alleviate the block overrun in the memo FileHandler method.

To reproduce this issue you maybe able to set the block_size to small 1K (1024) and write several large files.

from infinit.

Dimrok avatar Dimrok commented on May 18, 2024

Hi @tarlano.

It's a known issue, you shouldn't use a block size smaller than 64KB (source @mnottale) for now (I'll add that to the documentation).
You can't write blobs of data larger than twice the block size (source @mnottale).

By experimenting, I found that, with my fuse configuration:

  • I wasn't able to reproduce with block_size bigger than 2KB.
  • The limit of data you can write with a block size of 1024 is 3024.

Here's a minimal test case to reproduce.

set -x

rm -rf .local

export MOUNTPOINT="$PWD/mountpoint"
export BLOCK_SIZE=2

infinit user create
infinit silo create filesystem silo
infinit network create --silo silo network
infinit volume create --network network --block-size $BLOCK_SIZE volume
infinit volume mount --name volume --mountpoint "$MOUNTPOINT" --cache --allow-root-creation &

sleep 1

DATA_SIZE=$(expr $BLOCK_SIZE \* 2)
echo $(printf '=%.0s' $(eval echo "{1..$DATA_SIZE}"))  >> "$MOUNTPOINT/data"

from infinit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.