GithubHelp home page GithubHelp logo

Comments (10)

maxtaco avatar maxtaco commented on July 19, 2024

from kbfs.

Naville avatar Naville commented on July 19, 2024

Also I didn't do anything except overwritten one very large file with its newer local version, which is merely 700MB. And that issue persists long after the upload has finished

from kbfs.

Naville avatar Naville commented on July 19, 2024

Better to delete these and just do ‘keybase log send’. @strib will check them out.

Cheers. My log id is : 527a0fc7f875635a10beca1c

from kbfs.

Naville avatar Naville commented on July 19, 2024

So the problem is how can I just uninstall/disable kbfs while keeping everything else as-is? The RAM usage after a reboot is now 4.47GB+ and counting. This is driving me nuts

from kbfs.

strib avatar strib commented on July 19, 2024

Your local device is in a conflict state with the server, with respect to about 2 GB of data in one of your folders. Normally that should be fine and it should resolve the conflict without you needing to do anything, but it seems like KBFS is being frequently restarted before it can finish its work. Maybe due to excessive memory consumption, based on your description above? Right now our conflict resolution process doesn't handle large files in a memory-efficient way, so that might be the issue. In any case, it doesn't have anything to do with the latest update, but with the state of your local device.

To work around this for now, you should:

  1. Make a local copy of any unsynced data from your local folder that you don't already have backed up. (This is data you only see on this device in the folder, but can't yet see from your other devices.)
  2. Completely quit the Keybase app.
  3. Run this command from the terminal:
mv "$HOME/Library/Application Support/Keybase/kbfs_journal/v1/0120f9b2ad24ee89f66c77ef9a04278b834d-2af519d97cb3c381" "$HOME/Library/Application Support/Keybase/kbfs_journal/v1/2af519d97cb3c381.bkp"
  1. Restart Keybase.

At this point you should be able to copy the data back into the folder and proceed normally again. Let me know how it goes.

from kbfs.

strib avatar strib commented on July 19, 2024

(Note: edited the command above ^)

from kbfs.

Naville avatar Naville commented on July 19, 2024

Followed your steps and rebooted and it now consistently uses RAM at around 140MB, which I guess is perfectly normal.
However my private local folder (aka /keybase/private/navillezhang/) is smaller than 2GB so I'm not sure where does the conflict comes from.

Regarding frequently restarted. I manually killed it one or two times, not sure if there are more restarts. My RAM was never fully used so I don't think RAM is the reason for potential restarts

from kbfs.

Naville avatar Naville commented on July 19, 2024

image

As you can see here, adding up together private and public is around 1GB. On a side note, that 25.2MB file in private folder is the very large file I mentioned before which supposed to be 650-700MB.

I've previously uploaded earlier versions of the same file to kbfs and there was no issue whatsoever, each time overwritting the old file.

from kbfs.

strib avatar strib commented on July 19, 2024

Ok cool, it was probably the manual restarts then.

I can't tell from the logs exactly where the data usage was coming from. Maybe it was multiple versions of the 700 MB file you wrote? And that 2GB includes the encryption and padding overhead, so it's hard to be exact.

Anyway I'm glad it's working ok now, sorry for the bad experience. Close this out if things look ok, and let us know if you have more issues.

from kbfs.

Naville avatar Naville commented on July 19, 2024

Maybe it was multiple versions of the 700 MB file you wrote?

Older versions shouldn't exist since last overwrite of the same file before this was around 2months ago and I clean reinstalled macOS since then.
It was a large SQL DB dump, and the upload causing the trouble was dumped from the DB which I've modified table structures. So my best guess is that the diff is too large (if kbfs was doing some kind of git-like text compare version control, this is probably the reason of the huge mem usage)

from kbfs.

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.