johannes wrote:Interesting project! A few random comments:
- yes, almost all of B3 is open source, but in any case you are free to edit whatever you like
Good
- there is no way (in hardware) to control the power to the USB ports. You need support from the USB devices in order to shut them down or control speed.
Yes, I know that it isn't hardware supported but on the software side (OS) it should be possible. As an example the way I turned off my USB mouse works and in theory I could also turn off a USB-fan with the same command.
- There is no way to check CPU temperature
Yes, I figured that out when I was reading an other thread (CPU @ full speed = ~2W is really nice)
- Spinning down the drive may or may not be a good idea, depending on what you are using yoru B3 for. There has been several previous discussions on thsi, but bottom line is spinning down/up too often causes wear.
A 3.5" HDD spin down/up cycle is "designed to last" about 50K when a 2.5" HDD about 300K so yes, you're right that one needs to be careful when playing with this. Configured wrong (=spin down every 10 minutes) and the HDD is dead in a year (~250 days = 50K cycles @ 10 minute spin down/up).
Spinning down the disk would save ~4W compared to having it in idle state.
That doesn't sound like much but when the total consuption is @ 8W (according to the propaganda on the homepage), spinning it down would save you 50%

Call me cheap all day but every penny is calculated over here and the energy prices aint going down in the near future. Also, it saves the environment which is a good thing obviously.
I'm going to use B3 as VPN gateway, file sharing, backup and I roughly estimate that it will be idle ~90% of the time.
There are additional concenrs as well, you would need to redirect logging etc etc.
This is actually the hard part, lots of smallish things that constantly wants to do something. As an example the stupid syslog with the -MARK- every 20min.
I guess the B3 can be RAM upgraded (?) so I was thinking of making a RAM disk and redirect /var/log (& /tmp ?) to the RAM disk (yes, copy *.RAM disk to /home/log every 6h). But I bet this is not enough and I can't say for sure what needs to be done exactly, this needs to be tested live on B3. I was also thinking about enable laptop_mode (/proc/sys/vm/laptop_mode) as the system should behave differently when running in this mode (=better cache handling I guess, need to investigate.)
Powertop should also be a very handy tool when figuring out what wakes the system. There are also other tools, btw how do I link to other sites here?
My other option is to schedule suspend for B3 over nights when there is no "need" for it to be powered on this needs to be supported under BIOS and I have no idea if it is at the moment (ie, suspend with a script and resume from BIOS?) I estimate that it could be in suspend mode about 50% of the time which saves the same amount of power as HDD spin down if HDD spin down = disabled when B3 is powered on.
The benefit from suspend:
- HDD spin down/up cycle should last a life time (about 70 years

)
- Saves power
- Much easier, no need for RAM disks etc.
The draw downs:
- IF I needed to access B3 from work etc., it is not powered on (Wake On LAN for this, don't know yet does B3 support magic packages..?)
The whole thing may seem like waste of time but in a strange way I like to tweak things (perhaps I should get a life..)
EDIT: I came to think of another way; running OS from a USB memory as USB memory sticks are really cheap these days. Also if redirecting /var/log & /tmp to RAM disk it should save the USB memory. Benefits, OS and files on different storage and easy to clone the USB memory stick where OS is installed. The 3TB HDD could be idle ~90% of the time (=spin down and save that ~4W).
Shall we start a competition and see on how low W the B3 can be run average 24h?
EDIT2: A fast google showed that newer USB memories have "wear leveling". Also, there are USB memories with a write protection switch. Imagine running the OS from USB memory write protected (redirect logs and tmp to the RAM disk), this should mean that the OS is more safe from root kits and shite. To update the system, reboot B3 (or power off to clear RAM), put USB in write mode and run updates. After update is done, enable write protection on USB memory.