Skip to content

0 files 9.41MB ? #350

Closed
Closed

Description

@ThomasWaldmann

i thought i do a scalability test putting a linux kernel src into a synced directory.

well, it didn't end well. maybe my android device ran out of inodes or clusters.

it was a bit troublesome to kill all the syncing going on (even after both sides had no files any more, it somehow wasn't stopping syncing).

but even after stopping syncthing on both sides, emptying the directories on both sides, starting syncthing again, I have a strange effect:

it shows:

linux side (0.8.13-2 ubuntu package):
Synchronization Idle (100%)
Global Repository 0 files, 9.41 MiB
Local Repository 0 files, 9.41 MiB
Out of Sync 0 files, 0 B

android side (0.8.14):
Synchronization Idle (100%)
Global Repository 0 files, 9.41 MiB
Local Repository 0 files, 9.41 MiB
Out of Sync 0 files, 0 B

there are exactly 0 files and 0 bytes on both sides in the shared directory in the filesystem. why does it say 9.41MB?

Activity

  1. ThomasWaldmann commented on Jun 9, 2014

    @ThomasWaldmann
    Author

    it somehow seems to be related to the .idx.gz file. I killed it and then local dropped to 0 files 0 MB.
    But: it still was there on the android side and got synced by from there, so it is now again at 0 files 9.41MB.

    All these files in the index are gone on both sides, so I am not sure why it seems to insist to keep them in the index...

  2. calmh commented on Jun 9, 2014

    @calmh
    Member

    That's a bit unintuitive, but what you're seeing is the "default cost" of deleted files. A deleted file or directory is valued at 128 bytes for syncing purposes. In this case, you probably have tens of thousands of deleted files in the index, making up for those megabytes of data.

    That said, it would be interesting to see what went wrong?

  3. calmh commented on Jun 10, 2014

    @calmh
    Member

    This seems to be a combo of #352 and #353, closing to continue there.

  4. ThomasWaldmann commented on Jun 14, 2014

    @ThomasWaldmann
    Author

    just a last question: "cost of delete file == 128 bytes" - is that meant permanently?

    what went wrong: well, maybe you can reproduce by putting a ton of files into one node (more than e.g. an android device can take - in my case the kernel source directly [guess including the object files from last build I ran] was enough). And at the time it runs against the wall, just try fixing by removing the files on both side...

  5. added
    frozen-due-to-age
    on Jun 17, 2017
  6. locked and limited conversation to collaborators on Jun 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    frozen-due-to-age

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions