Comments (7)
Sorry that I didn't had the chance to test the second update. But the diff looks pretty promising.
Thanks for fixing the issues.
from synology_hdd_db.
Size: 8192 MB
Size: 32 GB
I knew dmidecode in DSM 7.2 sometimes reported memory in GB instead of MB but it never occurred to me that it could report different units for 2 different memory modules in the same NAS.
Thanks again for your help.
from synology_hdd_db.
Do you want to try this version to confirm that if solves issue #106 and this issue.
https://github.com/007revad/Synology_HDD_db/releases/tag/v3.1.57-RC
from synology_hdd_db.
The assets might not updated at the linked release candidate of v3.1.57-RC. I can only find the changes from the commit ada7eff
There is unfortunately no relevant change from the difference report compared to v3.0.56
v3.0.56...v3.1.57-RC
from synology_hdd_db.
Oops. I forgot to set the target to develop.
I made sure to set the target to develop on this version.
https://github.com/007revad/Synology_HDD_db/releases/tag/v3.1.58-RC
from synology_hdd_db.
We have checked the behavior and the result is as following.
The console output informed that RAM size was changed with this message:
Max memory is set to 40 GB.
Thats the good point that the evaluation of the max installed RAM is now correct.
On the other hand there might an issue when the latest size is less than the previous one from the database.
In this case the wrong evaluated value in the databse from the last script execution was 8421376
and therefore the new value of 40 GB (40960 MB) is less than the previous one.
else [[ $setting -lt "$ramtotal" ]]
#echo -e "\nMax memory is set to $ramtotal MB."
ramgb=$((ramtotal / 1024))
echo -e "\nMax memory is set to $ramgb GB."
fi
This will cause the issue that the new value is only reported on the console out but will never updated in the database with synosetkeyvalue
.
What is the idea of the function to set the mem_max_mb value?
Only to update database in case of lareger values of RAM installed than the max limitation of Synology default setting to support more RAM in the system?
from synology_hdd_db.
Only to update database in case of larger values of RAM installed than the max limitation of Synology default setting to support more RAM in the system?
Yes. If you install more memory than the mem_max_mb setting DSM will only use memory up to the mem_max_mb setting, but it will use the rest of the memory as a cache.
That else [[ $setting -lt "$ramtotal" ]]
section in that if else then statement was definitely wrong, and never would have been processed because the if [[ $ramtotal -gt "$setting" ]]
would have been processed instead.
I've changed it to:
else [[ $ramtotal -lt "$setting" ]]
#echo -e "\nMax memory is set to $setting MB."
ramgb=$((setting / 1024))
echo -e "\nMax memory is set to $ramgb GB."
fi
To restore incorrectly set mem_max_mb like yours the script now checks if the existing value is greater than both the installed memory amount and the default value in the backup syninfo.conf - then restores it to the default if needed.
https://github.com/007revad/Synology_HDD_db/releases/tag/v3.1.59-RC
from synology_hdd_db.
Related Issues (20)
- Working on DS423+/DSM7.2-64570u1 HOT 1
- Confirmed working on 923
- Compatibility with DX1222 expansion unit. HOT 1
- Still cannot use NVMe storage pool with PCIe? HOT 2
- Worm / Immutable snapshot not fully enabled HOT 1
- Update 3, no nvme volume after reboot, no E10M20 functionality HOT 15
- NAS shutdown due to high temperature on NVME disk HOT 4
- DVA memory warning HOT 6
- Command not found in DS3622xs+ DSM 7.2-64570 Update 3 HOT 2
- No M.2 volumes with 7.2 u3 HOT 7
- Script not working with single drive HOT 6
- DS1821+ with 2x NVME`s internal and 2x NVME`s on E10M20-T1, no show in Storage Manager after script HOT 157
- DSM 7.2.1 Diskstation 918+ NVME volume not supported HOT 29
- DSM 7.2.1-69057 Won't support syno_hdd_db.sh HOT 12
- Permission denied with sudo -i HOT 6
- Error in running hdd_db script HOT 6
- Total memory size is not numeric: '' HOT 7
- DS1823xs+ with E10M20-T1 isn't recognised in GUI HOT 7
- Restore seems to be hanging while restoring model databases HOT 1
- Partially working - One drive still unsupported HOT 20
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from synology_hdd_db.