Is it possible to use a SSD Drive for both the operating system and as aa cache for the Zfs file system ?
It is now advised to use a USB stich for the operating system, wich loads into memory. For a good performance a lot of memory is required.
1 .. 2 Gbyte for eacht TByte of storage is suggested, as a cache for the file system.
It would be cheaper if to use a SSD drive with 3 or 4 partitions
Partition 1: Current version of the Freenas Operating system.
Partition 2: USed for upgrading to a new version of Freenas.
Partition 3: Configured Operating system, used for a quick start. No scan for new hardware required.
Partition 4: USed for cache purposed of the Zfs file system.
On a cold start the operating system starts from partition 1, to configure all hardware.
The configured operating system is written to partition 3. This partition will be the new active partition.
On the next boot, the system boots from partition 3, since there is no need to reconfigure the system.
When a New version is available, this new version is placed in partition 2. This partition is then marked as the Active partition.
Also the configuration settings are copied to this partition.
On reboot, the system will boor from partition 2, and when tested the user can make the changes permanent by copying partition 2 to partition 1.
(This is a new item to add to the contol panel).
ALso it should be possible to revert to the previous version, by doiing the oppsite, and copyiing partition 1 to partition 2.
A Cold start will always start from partition 1, unless a new operating system is installed, in wich case the cold boot will be from partition 2.
A Warm start always starts from partition 3, skipping the configuration of new hardware.
When starting from Partition 1 of 2, the cache (Partition 4) will be cleared.
When starting from Partition 3, the cache will still be valid, so no need to clear it. Will also result in a faster boot.
Any user change to the Hardware (new drivers etc) will be treated in the same way as a new version of the operating system,
so it is always possible the undo these changes.
Partition 4 is the most important for caching. The Afs file system uses a lot of mamory for caching file system information.
This information is only changed when writing, so most of this information is static, ideal for SSD Caching.
For Read and Write chache memory is preferred, but SSD can be a good alternative, since data is still valid after a power break.
Using SSD as a Write cache is a good alternative for battery backup on a hardware controller, to avoid data-loss in case of an power break.
Please comment on this proposal, I think it can improve the performance at a minimum investment (a small SSD will do in most cases)
Hannes
It is now advised to use a USB stich for the operating system, wich loads into memory. For a good performance a lot of memory is required.
1 .. 2 Gbyte for eacht TByte of storage is suggested, as a cache for the file system.
It would be cheaper if to use a SSD drive with 3 or 4 partitions
Partition 1: Current version of the Freenas Operating system.
Partition 2: USed for upgrading to a new version of Freenas.
Partition 3: Configured Operating system, used for a quick start. No scan for new hardware required.
Partition 4: USed for cache purposed of the Zfs file system.
On a cold start the operating system starts from partition 1, to configure all hardware.
The configured operating system is written to partition 3. This partition will be the new active partition.
On the next boot, the system boots from partition 3, since there is no need to reconfigure the system.
When a New version is available, this new version is placed in partition 2. This partition is then marked as the Active partition.
Also the configuration settings are copied to this partition.
On reboot, the system will boor from partition 2, and when tested the user can make the changes permanent by copying partition 2 to partition 1.
(This is a new item to add to the contol panel).
ALso it should be possible to revert to the previous version, by doiing the oppsite, and copyiing partition 1 to partition 2.
A Cold start will always start from partition 1, unless a new operating system is installed, in wich case the cold boot will be from partition 2.
A Warm start always starts from partition 3, skipping the configuration of new hardware.
When starting from Partition 1 of 2, the cache (Partition 4) will be cleared.
When starting from Partition 3, the cache will still be valid, so no need to clear it. Will also result in a faster boot.
Any user change to the Hardware (new drivers etc) will be treated in the same way as a new version of the operating system,
so it is always possible the undo these changes.
Partition 4 is the most important for caching. The Afs file system uses a lot of mamory for caching file system information.
This information is only changed when writing, so most of this information is static, ideal for SSD Caching.
For Read and Write chache memory is preferred, but SSD can be a good alternative, since data is still valid after a power break.
Using SSD as a Write cache is a good alternative for battery backup on a hardware controller, to avoid data-loss in case of an power break.
Please comment on this proposal, I think it can improve the performance at a minimum investment (a small SSD will do in most cases)
Hannes