Articles in the Uncategorized category

  1. PPSS Version 2.30 Now Operates Asynchronous

    Sat 26 September 2009

    If you background a bash or shell process, how do you determine if it has finished? Since inter process communication is not possible using shell scripts, people often refer to while loops or other polling mechanisms to determine if some process has stopped.

    However, the one player that knows best if a process has finished is the process itself. So if only this process could tell the parent or other process about this...

    The solution is using a FIFO or 'pipe'. A listener process reads the pipe and executes a command for every message received through this pipe. This was already build-in into PPSS. However, PPSS had this dirty while loop that polls every x seconds to determine if there are still running workers. If not, PPSS finishes itself.

    However, while loops and polling mechanisms are evil, dirty and bad. The nicest solution is to make PPSS fully asynchronous. To achieve this, every job must tell PPSS that is has finished. PPSS already has this listening process that listens to the pipe for commands. If this channel is used by workers to communicate that a worker is finished, PPSS will know when all workers are finished.

    This makes PPSS a lot faster and responsive.

    If you have any comments email me, see the About page for contact details.
  2. How to Build an Energy Efficient Computer for Home Use

    Sat 19 September 2009

    In short:

    1. Buy whatever you fucking want.

    2. Turn the fucking thing off when you're not using it.

    Long:

    People are spending a lot of time building an energy efficient home computer, that can act as an HTPC, NAS, or whatever. It must consume as little power as possible, because it it will be on 24/7.

    Why the fuck do you want to leave a system on 24/7 at home?

    Unless you're unemployed you will be at work most of the time. And during that time, this machine is doing absolutely nothing.

    There may only be one system that stays on 24/7 and that is your router, either some embedded router thingy or something based on a low-power PC, but that's about it. Turn every thing else off.

    A machine that does 200 Watt idle that is only turned on when necessary will be more energy efficient than your specially build 40 watt NAS or whatever it is that is running 24/7. Nothing can beat a system that is turned off.

    If you need a system, just use wake-on-lan or WOL to turn the damn thing on. It will be ready in about 2 or 3 minutes and then you can do whatever you want.

    Fine if you leave a system on that is downloading some stuff during the night or day, but after the download has finished, turn the damn thing off.

    If you're honest with yourself and really think about it, there is no need to keep a system on for 24/7. I know you may come up with excuses, but remember that you still can use your router for that.

    By the way, if you're searching for a really energy efficient computer, buy a Mac Mini. Although quite expensive if you ask me, the're doing 30 watt in idle and almost nothing when sleeping. And if a mac is asleep, it can be woken with WOL and is up in seconds. They make an excelent download server.

    [EDIT]

    There is also the option of S3 or S4 under Linux: suspend to ram or disk. However, your mileage may vary. If it works for you your system will be down and up in seconds. However, my experience is that it very much depends on your hardware if this will work. My Highpoint cards do not seem to like it, my array does not awake and the screen of the system stays blank.

    If it works, it is a faster solution than just to turn the system off and on with WOL. My experience is that is seems not that robust.

    If you have any comments email me, see the About page for contact details.

Page 32 / 40