What is the lower amount of RAM rustic can be used with? #1345
-
I have a low power machine that I want to backup, the problem is that it doesn't have much RAM available, at most 400MB, so I'm wondering can I configure rustic in a way that it uses the less amount of RAM possible? And how much RAM will that be? I mean I know nobody can just see the future and tell me how much RAM rustic will use but I'm curious about the minimum RAM anyone got rustic working with. I'm guessing I will have to disable compression? And use the default pack sizes if not smaller, but what else? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Would it be possible to get some info about your current dataset? Total/average size, file count, type of data, underlying file system(s)/raid? Additionally, is swap space available? Any time constraints on backup runtime? As a last resort, can you make your data available to another machine over the network? It might be possible to do the heavier lifting on another machine if the network is fast enough and dataset is small enough. Alternatively, an rsync/rclone to another host, running the backup out there. |
Beta Was this translation helpful? Give feedback.
-
@parasiteoflife While rustic is optimized to use as few memory as possible (and should have an overall memory footprint way lower than restic), I must say that the repository format in general is not optimized for very-low-memory-environments like yours. For many operations, the in-memory index is the main contributor to memory usage - this is largely memory-optimized in rustic, but it directly depends on the total repository size. So, if you have a large repository, you most likely will reach memory limits at some point... For That said, I just checked the memory usage of a real-life repository having ~250GB repository size (with all default settings, i.e. a datapacksize of around 50MiB) and I am seeing memory usage below 100MB for standard operations like |
Beta Was this translation helpful? Give feedback.
@parasiteoflife While rustic is optimized to use as few memory as possible (and should have an overall memory footprint way lower than restic), I must say that the repository format in general is not optimized for very-low-memory-environments like yours.
For many operations, the in-memory index is the main contributor to memory usage - this is largely memory-optimized in rustic, but it directly depends on the total repository size. So, if you have a large repository, you most likely will reach memory limits at some point...
For
backup
, rustic keeps approximately 4 pack files in memory before/while writing them, so reducing the pack size (e.g. using ingrustic config --set-datapack-size-limit