jpap

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by jpap

  1. I'm seeing massive RAM usage on macOS.  On a MacBook 12" with 8GB of RAM, I'm seeing Resilio Sync use 1.31GB of memory for a two-folder share with 1,654,405 files.  That's aside from the massive disk usage for the SQLite files.

    I'm sure there is a lot of room for improvement here.  I'm debating whether Resilio Sync is worth the overhead compared to a periodic rsync in my case.

    I wonder if some of the simple suggestions on StackOverflow for limiting SQLite memory usage could be helpful to the devs.

  2. In ~/Library/Application Support/Resilio Sync on macOS I can see the SQLite databases being used to track shared folders.

    The WAL files are massive!  In my case, for a share of two folders (having 1,654,405 files in many sub-folders) the entire folder is 2.86GB on each peer.  About 1.1GB of that are wasted in WAL files while Resilio Sync is idle.

    I can appreciate the need for using SQLite to track files, but surely these WAL files can be periodically cleaned whilst Sync is idle?  Or at least an effort to limit the maximum WAL size.

  3. I also had high CPU utilization on two macOS machines, one being a MacBook 12" (2017) which was overwhelmed by Resilio Sync.

    I am managing just two folders, but each has 1,654,405 files combined, over many sub-folders.  Sync was not transferring files despite the high CPU: all files were in a synced state.

    It turns out that Sync was periodically re-scanning all of the files/folders every 10 minutes!  After disabling this, using the "power user preferences" option "folder_rescan_interval = 0", the high CPU usage disappeared completely on both machines.

    Sync was still able to detect changes to each folder.  I suspect they are using the macOS FSEvents APIs where the OS tells Sync which files have changed without polling.

    I would love to know why the folder_rescan_interval isn't set to 0 on macOS by default?  (And Windows, where I'm guessing the equivalent Windows Change Journals are being used?).