ObjectiveFS uses memory to cache filesystem data and metadata locally to improve performance and to reduce the number of S3 operations. The amount of memory used by ObjectiveFS is based on the memory cache size, number of S3 objects used by your filesystem and the amount requested by the Linux kernel.
The memory cache size can be adjusted using the
CACHESIZE environment variable (see details). You can find out the number of S3 objects used by your filesystem by looking at the
IUsed column in
We recommend running on servers with at least 1GB+ of memory.
To make sure you have enough memory for your other applications, you can use
CACHESIZE + (500MB to 1GB depending on your filesystem size) as an estimate for each ObjectiveFS mount.
CACHESIZE used by each mount is logged upon filesystem mount (see log info).
If you need to lower the memory usage of ObjectiveFS, we recommend using one or more of the following steps.
CACHESIZEvalue is also printed upon filesystem mount, either on screen (when running in foreground) or in the log file (when running in background)
If your server only needs to read your filesystem, you can also mount your filesystem with the read-only option (
mount -o ro). (see mount options)
$ sudo mount.objectivefs -o ro <filesystem> <dir>
If you have questions about how to optimize memory for your filesystem and use cases, please feel free to contact firstname.lastname@example.org. We are happy to work with you to find a good solution for your use case.
by ObjectiveFS staff, March 25, 2018
ObjectiveFS is a shared file system for OS X and Linux that automatically scales and gives you scalable cloud storage. If you have questions or article idea suggestions, please email us at email@example.com