Ok, I think I have it sorted... doing final tests now. Bonnie uses 2X the RAM when deciding how much data to write... so I've added a calculation to discover the system memory, compare that to free disk space and if the free disk space is not more than 2x RAM, we cut the amount of RAM presented to Bonnie to 1/2 the amout of free space.
What that means is that a system with 12GB ram will require at least 24GB of free space for bonnie to run successfully.
If the systm only has 16GB of free space, we need to tell bonnie that the system only has 8GB of free space using the -r option.
That will force bonnie to only write 2x RAM, or 16GB total data in this example.
So far I've tested this on my 16GB SSH which only has about 7.8GB Free on a system with 6GB RAM. THe new method has worked on it, so I'll try once more on teh larger HDD to make sure it works.
Ok, I think I have it sorted... doing final tests now. Bonnie uses 2X the RAM when deciding how much data to write... so I've added a calculation to discover the system memory, compare that to free disk space and if the free disk space is not more than 2x RAM, we cut the amount of RAM presented to Bonnie to 1/2 the amout of free space.
What that means is that a system with 12GB ram will require at least 24GB of free space for bonnie to run successfully.
If the systm only has 16GB of free space, we need to tell bonnie that the system only has 8GB of free space using the -r option.
That will force bonnie to only write 2x RAM, or 16GB total data in this example.
So far I've tested this on my 16GB SSH which only has about 7.8GB Free on a system with 6GB RAM. THe new method has worked on it, so I'll try once more on teh larger HDD to make sure it works.