The Vera Community forums have moved!

Advanced => Plugins & Plugin Development => Programming => openHAB MiOS Binding => Topic started by: RichardTSchaefer on January 16, 2015, 02:22:53 pm

Title: Hardware: What are you using to run openHAB?
Post by: RichardTSchaefer on January 16, 2015, 02:22:53 pm
My laptop makes a great development platform.
I am not far enough a long to decide on a runtime platform.
Title: Re: Hardware: What are you using to run openHAB?
Post by: macrho on January 26, 2015, 03:45:25 pm
So is everyone using an RPi for OpenHAB? I have an old Intel NUC celeron hanging around that might be a good fit?
Title: Re: Hardware: What are you using to run openHAB?
Post by: akbooer on January 26, 2015, 03:46:53 pm
So is everyone using an RPi for OpenHAB? I have an old Intel NUC celeron hanging around that might be a good fit?

...and I'm considering a Beaglebone Black.
Title: Re: Hardware: What are you using to run openHAB?
Post by: BOFH on January 26, 2015, 04:09:30 pm
So is everyone using an RPi for OpenHAB? I have an old Intel NUC celeron hanging around that might be a good fit?

I'm planning to install it on an existing HP N40L microserver running FreeBSD that's running my ZFS RAID setup as it has enough spare cycles. Running ZFS means I can create snapshots. :)
Title: Re: Hardware: What are you using to run openHAB?
Post by: gduprey on January 26, 2015, 04:28:06 pm
I'm using a small fanless i3 box running linux.

http://www.amazon.com/gp/product/B00I05NH9S (http://www.amazon.com/gp/product/B00I05NH9S)

I put a 128GB mSATA card (system), 8GB of RAM and a 1TB 5400rpm 2.5" laptop drive for the databases, running Ubuntu 14.04 (no GUI).  It's only 4" square and about 1.5" high.  Draws about 40 watts.

It hosts my databases for the house, several other HA systems, whole house audio, media, file, email and web server, and extensive lighting (DMX and custom stuff).  It still has tons of capacity (it's still idle most of the time).  Total cost was under $400 and it replaced everything in the house but laptops.
Title: Re: Hardware: What are you using to run openHAB?
Post by: Derek Macias on January 29, 2015, 12:25:00 pm
I'm using a small itx 8 core Avoton unRAID server with a KVM ubuntu server virtual machine.
Title: Re: Hardware: What are you using to run openHAB?
Post by: akbooer on January 29, 2015, 12:29:29 pm
Beaglebone Black arrived today!
Title: Re: Hardware: What are you using to run openHAB?
Post by: garrettwp on January 29, 2015, 12:32:41 pm
I suggest you avoid a raspberry pi or even a beagle bone black. Not enough horse power and will take awhile to start. Guessed is using an odroid c1 and says it runs well. I am running my instance in a dedicated virtual machine which is on top of an 8 core amd server.


- Garrett
Title: Re: Hardware: What are you using to run openHAB?
Post by: Electron Employer on January 29, 2015, 01:21:06 pm
So is everyone using an RPi for OpenHAB? I have an old Intel NUC celeron hanging around that might be a good fit?

I'm planning to install it on an existing HP N40L microserver running FreeBSD that's running my ZFS RAID setup as it has enough spare cycles. Running ZFS means I can create snapshots. :)

I have a new HP Microserver sat in the box. I was thinking exactly the same as yourself. The only decision is whether to run it from the USB inside or use an SSD. As a novice to Linux it's going to present a challenge (I'm MCSE accredited but that is no good here) so one I've picked a platform I'm likely to stick with it.

However, and it is a BIG however, I just can't stop acquiring hardware and I really want to have a go at the Cubie Board 4. I mean wow! Can we actually use all 8 cores?

https://www.newit.co.uk/shop/Cubieboard4

I know this would need more tweaking and it will be a bit more to run (2.5amps DC = 30 watts) but it is a lot smaller (read easier to hide from the wife.) Tough choices!

If anyone else has any thoughts, please chime in I appreciate your comments.

On the subject of the Vera / OH integration and a proper forum, I am very pleased that there has been an official coming together and that @guessed has been given his own forum to look after. I would also like to thank the other devs that have worked so hard as they too deserve a mention. I am new here but have been watching the forums for months now and was concerned that all the effort that the devs had put in would be wasted if they jumped ship. The contributions to make this product what it can be from 3rd parties are very substantial and I see sinergie in the focus of the group. This is excellent for Vera commercially and allows others to expand their systems through scalable design with open source framework.

Perhaps Vera could consider manufacturing a world class standalone Z-Wave Bridge which could replace the Z-stick as a defacto Z wave device with proper antennae and a higher range/output?

Exciting times are ahead  :)
Title: Re: Hardware: What are you using to run openHAB?
Post by: guessed on January 29, 2015, 02:45:03 pm
I have a new HP Microserver sat in the box. I was thinking exactly the same as yourself. The only decision is whether to run it from the USB inside or use an SSD. As a novice to Linux it's going to present a challenge (I'm MCSE accredited but that is no good here) so one I've picked a platform I'm likely to stick with it.

For most people getting started I think the answer is going to be either to start off using a VM (eg. VirtualBox (https://www.virtualbox.org/) deployment of Ubuntu etc, or similar) or to re-use something they already have (like your HP Microserver)

Once you get a little mileage on it you'll have a better sense for what you really need, how small you can go (etc).

I started mine on my Mac Mini, and it's now moved to the Odroid C1 (for Low Power consumption).  I still do the dev work against the Mac, but the deployed/Production version is on the C1 (with a bunch of fiddling to get that going up front)

Quote
However, and it is a BIG however, I just can't stop acquiring hardware and I really want to have a go at the Cubie Board 4. I mean wow! Can we actually use all 8 cores?

https://www.newit.co.uk/shop/Cubieboard4

I know this would need more tweaking and it will be a bit more to run (2.5amps DC = 30 watts) but it is a lot smaller (read easier to hide from the wife.) Tough choices!

If anyone else has any thoughts, please chime in I appreciate your comments.

Must.... resist.... temptation to buy a ton of these small boards ;)


Quote
Perhaps Vera could consider manufacturing a world class standalone Z-Wave Bridge which could replace the Z-stick as a defacto Z wave device with proper antennae and a higher range/output?

That's roughly what HomeSeer's Z-NET (http://www.prweb.com/releases/Z-NET/Z-Wave-Interface/prweb12421192.htm) appears to be.  I chatted with the lad @CES and couldn't get much detail on whether it formally implements Sigma's Z/IP protocol or not, and whether there was an option to "extend" the internal option (or not)

The Aeon Z-Stick is also coming out with a new Rev in Spring/Summer (for latest Z-Wave chipset) and it didn't appear to have an option to extend the antenna either.
Title: Re: Hardware: What are you using to run openHAB?
Post by: cubs2b23 on January 29, 2015, 06:23:48 pm
Anyone using a Synology NAS to run openHAB?
Title: Re: Hardware: What are you using to run openHAB?
Post by: macrho on January 29, 2015, 08:26:00 pm
I have a Synology NAS but I've found that the performance isn't up to snuff:

- Moved Plex to a dedicated PC
- Moved off of, err, what is the video software...  to Blue Iris
- Moved off of DariaDB to MySql on a dedicated PC

I wound up ordering a ODROID-C1; just a sucker for the form factor, I guess(ed)
Title: Re: Hardware: What are you using to run openHAB?
Post by: Vodden on January 29, 2015, 11:04:16 pm
It would seem that an MX-III Android TV box would be more than adequate if the ODROID-C1 works well with it.
Title: Re: Hardware: What are you using to run openHAB?
Post by: Electron Employer on January 30, 2015, 02:01:47 am
I have a new HP Microserver sat in the box. I was thinking exactly the same as yourself. The only decision is whether to run it from the USB inside or use an SSD. As a novice to Linux it's going to present a challenge (I'm MCSE accredited but that is no good here) so one I've picked a platform I'm likely to stick with it.

For most people getting started I think the answer is going to be either to start off using a VM (eg. VirtualBox (https://www.virtualbox.org/) deployment of Ubuntu etc, or similar) or to re-use something they already have (like your HP Microserver)

Once you get a little mileage on it you'll have a better sense for what you really need, how small you can go (etc).

I started mine on my Mac Mini, and it's now moved to the Odroid C1 (for Low Power consumption).  I still do the dev work against the Mac, but the deployed/Production version is on the C1 (with a bunch of fiddling to get that going up front)

Quote
However, and it is a BIG however, I just can't stop acquiring hardware and I really want to have a go at the Cubie Board 4. I mean wow! Can we actually use all 8 cores?

https://www.newit.co.uk/shop/Cubieboard4

I know this would need more tweaking and it will be a bit more to run (2.5amps DC = 30 watts) but it is a lot smaller (read easier to hide from the wife.) Tough choices!

If anyone else has any thoughts, please chime in I appreciate your comments.

Must.... resist.... temptation to buy a ton of these small boards ;)


Quote
Perhaps Vera could consider manufacturing a world class standalone Z-Wave Bridge which could replace the Z-stick as a defacto Z wave device with proper antennae and a higher range/output?

That's roughly what HomeSeer's Z-NET (http://www.prweb.com/releases/Z-NET/Z-Wave-Interface/prweb12421192.htm) appears to be.  I chatted with the lad @CES and couldn't get much detail on whether it formally implements Sigma's Z/IP protocol or not, and whether there was an option to "extend" the internal option (or not)

The Aeon Z-Stick is also coming out with a new Rev in Spring/Summer (for latest Z-Wave chipset) and it didn't appear to have an option to extend the antenna either.

Downloaded Open Box, so the fun starts this weekend and I will be using the Microserver. Thank you for your input :)
Title: Re: Hardware: What are you using to run openHAB?
Post by: guest13549 on January 30, 2015, 11:16:23 am
Beaglebone Black arrived today!

I'm considering running it on a Sitara platform that I developed myself, not too different from a beagle bone, so I'd be interested to hear about your reflections on its performance... I'm currently in testing phase on a core i5..
Title: Re: Hardware: What are you using to run openHAB?
Post by: kwiky on January 30, 2015, 03:10:04 pm
If I were to make a VM for openhab in esxi (i7 hex core, 24gb ddr3, plenty of storage) what type of specs should I give it? 1core, 2 core? 1-2gb? how much storage?
Title: Re: Hardware: What are you using to run openHAB?
Post by: guessed on January 30, 2015, 03:21:44 pm
If I were to make a VM for openhab in esxi (i7 hex core, 24gb ddr3, plenty of storage) what type of specs should I give it? 1core, 2 core? 1-2gb? how much storage?

Think about your viable target options.  The processor will likely be different (ARM-variant vs Intel), but most other things will be in the same territory.

Commodity, low-cost, 2 or 4 Core ARM devices, with 1-2GB RAM are available for $50-150 when fully equipped.

With that in mind, using a VM with 1-2 Cores, and 1GB RAM, will get you a great starter system.  You can always tweak it up or down from there as needed... it's just a VM.
Title: Re: Hardware: What are you using to run openHAB?
Post by: Brientim on February 02, 2015, 05:15:35 am
Of course just to add to the conversation, I wonder what the performance on the new RASPi would be.

http://www.raspberrypi.org/raspberry-pi-2-on-sale/

Title: Re: Hardware: What are you using to run openHAB?
Post by: guessed on February 02, 2015, 09:49:50 am
Of course just to add to the conversation, I wonder what the performance on the new RASPi would be.

http://www.raspberrypi.org/raspberry-pi-2-on-sale/

I like that they've finally made speed improvement, more options is a great thing for users.

Let's hope they changed to gigE and much faster SDHC interfaces also, or it'll be moot (choking on its IO lanes).
Title: Re: Hardware: What are you using to run openHAB?
Post by: AgileHumor on February 02, 2015, 11:03:46 am
I have one i7 Windows PC that handles:
* Media Center / Media Browser HTPC (fed to 8 TV's via HDMI splitter that turn on with motion)
* VoxCommando TTS (from Vera) and Speech Recognition
* iSpy controlling 10 x 720p IR Camera  (and one Foscam camara as an audio/video baby monitor)
* Misc Tools:
   ** NZBGet
   ** Utorrent
   ** CouchPotato
   ** Sonarr
   ** DynDNS updater
* Now, Adding OpenHab to relieve my Vera which flakes out about once a month (even with daily reboots) providing uncertainty in my 99% automated home :(
Title: Re: Hardware: What are you using to run openHAB?
Post by: nwootton on February 03, 2015, 07:21:52 am
New Raspberry Pi arrived today, and I managed to scavenge up a micro SD card, installed January's Wheezy image and then installed the three core systems I use on the current Pi to run my HA stuff - OpenHAB 1.6.2, Mosquitto and MySQL (5.5.x). I've copied across the same configs from the current RPi(B) box and booted the new one.

Feels much faster boot time to prompt.
Boot of OpenHAB to first "I'm alive message" on new Pi is 30 seconds, on the old Pi ~110-130 seconds, so definitely faster to fire up my environment.

No scientific analysis here, but first impressions are that the new Pi is much more capable for my particular scenario and will give me enough headroom to expand/add bindings without the cost of a CubieTruck or ODroid U3 board.
Title: Re: Hardware: What are you using to run openHAB?
Post by: shmixx on February 04, 2015, 09:55:28 am
Glad to see someone take a dive with the RPi2. I was curious if it would make an improvement enough to void all the other issues people have complained about. Now if only we could find a REALLY nice Wave child board, add a battery pack, it could be just like an OpenHAB Vera Lite box! :)

Just wanted to add some input for some folks bringing up some other platforms mentioned and give you my feedback:

FreeNAS - I was running this originally. I started testing OH on my Mac, but knew I needed an actual platform that was always on and available to update regularly. So my first attempt was my FreeNAS system. It was running my Plex, SB, Sab, etc without any issues. I threw in a new jail for OH, learned from FreeBSD command line along the way, and got OH running. It required essentially just getting Java to run properly, then the rest was a breeze. Being a NAS system, it's also pretty easy to make the config files available to yourself for quick edits via the Designer. Depending on your hardware, you mileage will vary of course. I'd imagine if it's anything current, you'll be fine. Even some older stuff should process and run fine with at least 4GB RAM and a modern proc.

Synology - So this is a dichotomy. From what I've heard, the actual Syno boxes don't have horsepower. Many people try Plex, but move to another platform because its sub-par. That said, if you're not doing anything too crazy, I can't imagine that OH wouldn't be able to run fairly easily. If you aren't bootstrapped, you may have some problems getting things working appropriately, or relying on some folks to re-package the latest builds for you. I had to manually put together the latest build into a package based off the model of another package.

XPEnology - If you haven't heard of it, check it out. It's basically a boot platform to run Synology DSM software on your own hardware. For those who've complained of Plex performance on a regular DSM box, this alleviates the problem. I turned my FreeNAS box into an XPEnology box. It works like a dream!! The only catch is that the boot loaders generally are not ready as soon as the latest DSM software releases. So if you need to be bleeding edge with DSM software, you will be a little disappointed. With the right patience though, it's worth the endeavor. I'm running everything I had on my FreeNAS, but with the advantage of a nice beautiful GUI for those who don't want to be dropping to a Terminal session regularly to control their system efficiently or with any advanced configurations.
Title: Re: Hardware: What are you using to run openHAB?
Post by: strangely on February 10, 2015, 01:14:42 am
Is there more feedback from anyone using an RPi2 yet? I'm on the fence between that and the Odroid C1....

or I could just buy both since they are cheap as chips (http://www.urbandictionary.com/define.php?term=cheap+as+chips/)

... not that I'm going to allow myself to get sucked into this just yet anyway :)
Title: Re: Hardware: What are you using to run openHAB?
Post by: Brientim on February 10, 2015, 01:46:21 am
Is there more feedback from anyone using an RPi2 yet? I'm on the fence between that and the Odroid C1....

or I could just buy both since they are cheap as chips (http://www.urbandictionary.com/define.php?term=cheap+as+chips/)

... not that I'm going to allow myself to get sucked into this just yet anyway :)

Not even looking at anything at the moment; however, just for you @strangley for a testiment see https://twitter.com/kaikreuzer/status/564086697546481664/photo/1
Title: Re: Hardware: What are you using to run openHAB?
Post by: strangely on February 11, 2015, 03:09:45 am
Thanks @Brientim, exciting times for these little machines ahead.
Title: Re: Hardware: What are you using to run openHAB?
Post by: gerardosamara on February 15, 2015, 04:44:45 am
Hello ,

Very interesting project.

What you think about running this app on an hardware like android tablet which is running some kind of Linux OS ?

Title: Re: Hardware: What are you using to run openHAB?
Post by: guessed on February 15, 2015, 10:48:32 am
What you think about running this app on an hardware like android tablet which is running some kind of Linux OS ?

Probably a question best asked over on the openHAB Forum itself (https://groups.google.com/forum/#!categories/openhab/discussions).  There are more people there, with experiences running across a variety of different Linux's and Hardware variations.
Title: Re: Hardware: What are you using to run openHAB?
Post by: Otje on February 20, 2015, 07:22:43 am
Hi all

This post made me curious to understand how openhab works and i decided to purchase raspberry Pi 2.
just installed it (demo mode) but without any hazzle and good performance so far.

avg cpu loading is 2%.

openhab starts quickly, so far so good.  i will share my further experiences also here in this post
Title: Re: Hardware: What are you using to run openHAB?
Post by: guessed on February 20, 2015, 05:54:22 pm
Welcome to the ToyBox @Otje!

Let us know how you get on with your rPi 2, the more feedback the merrier! 

Given it's capabilities, and price-point (etc), it looks to become the defacto option for openHAB users.  There are reports about lockups of Java on the rPi2, so just keep an eye on the openHAB forums for reported issues.
Title: Re: Hardware: What are you using to run openHAB?
Post by: macrho on February 26, 2015, 11:56:30 am
I have one i7 Windows PC that handles:
* Media Center / Media Browser HTPC (fed to 8 TV's via HDMI splitter that turn on with motion)
* VoxCommando TTS (from Vera) and Speech Recognition
* iSpy controlling 10 x 720p IR Camera  (and one Foscam camara as an audio/video baby monitor)
* Misc Tools:
   ** NZBGet
   ** Utorrent
   ** CouchPotato
   ** Sonarr
   ** DynDNS updater
* Now, Adding OpenHab to relieve my Vera which flakes out about once a month (even with daily reboots) providing uncertainty in my 99% automated home :(

nearly the same set up as I have though Kodi instead of MediaBrowser, been trying to use it but the Aeon MQ5 skin just does all I need. Finally kicked sickbeard to the curb and went with Sonarr, quite nice

I have an ODROID-C1 that I've begun setting up with OpenHAB just have to get some more time to finish it
Title: Re: Hardware: What are you using to run openHAB?
Post by: Otje on February 26, 2015, 04:47:36 pm
on Raspberry Pi2: i can not get the OpenHab designer to work on the raspberry.
after further googling the internet i understand that this is not possible, hence i need to run the designer on a remote terminal, like a PC.

it is not a big problem but you have to be aware that you have to copy the modified files to the raspberry everytime. for some this may be a showstopper though...

other than that: all is runnig fine !
Title: Re: Hardware: What are you using to run openHAB?
Post by: guessed on February 26, 2015, 05:36:53 pm
I think most folks using the micro platforms are using them as Runtime only.  In this mode, they're mounting the remote FS and editing on their convention machines.

In my case, I edit (without tools) the files on my Mac, test out the basics there (another openHAB install), and then SSH over the relevant changes when they're ready.

Definitely agree that the workflow could be better.  Apparently OH2 is heading toward a HTML admin tool, which will save folks the headache of a fat/desktop client.
Title: Re: Hardware: What are you using to run openHAB?
Post by: Otje on February 26, 2015, 05:56:35 pm
thanks for the info!

I am intrested to understand if you use the PI with the openhab running on it's SD CARD or did you mount an external drive or maybe to a network NAS?

i want to run graphics also and i did read somewhere that if you work with graphics there will be to many read actions on the SDCARD which may not be good at all.
hence, i would consider to mount a NAS (like i do with datamine and the vera)

is this necessary for openhab?
Title: Re: Hardware: What are you using to run openHAB?
Post by: racarter on February 26, 2015, 06:01:00 pm
I've installed Samba server on my Pi 2, so I can mount the Pi openHAB folder on my MacBook as a share, run openHAB Designer on there and point it to the openHAB config folder on the Pi.  Saves the hassle of saving files locally then copying them across.   :)
Title: Re: Hardware: What are you using to run openHAB?
Post by: Otje on February 26, 2015, 06:11:36 pm
Makes perfect sense, i should have thought about that as wel.. :-[
Title: Re: Hardware: What are you using to run openHAB?
Post by: guessed on February 26, 2015, 06:20:45 pm
thanks for the info!

I am intrested to understand if you use the PI with the openhab running on it's SD CARD or did you mount an external drive or maybe to a network NAS?

I'm running on Odroid C1, but the principals are the same.  For stability, I keep everything I need on the device itself.  It has very few external dependencies.

Logging, persistence etc are all on the local Flash.  If the flash wears out, as it will eventually, I simple drop in another and do a restore and I'm set to go.

I put in changes to the MiOS Binding recently to reduce the amount/size/rate of logs that I generate which will also help.

I switched the C1 over to use a higher read/write spec MicroSD (from PNY), but that's not really needed.  The biggest lump in IO comes from using RRD for the persistence layer.  It writes everything out (at least) every minute and creates a largish IO spike as everything is in distinct files.  At some point I may switchover to MySQL (etc) since they're more likely to be tuned in IO handling.
Title: Re: Hardware: What are you using to run openHAB?
Post by: Otje on February 26, 2015, 06:33:55 pm
Hi

just to make sure i understand correctly... your C1 operating system is on the microsd and your openhab runs from the flash? Ie your openhab folder is located on the flashdrive, correct?
Title: Re: Hardware: What are you using to run openHAB?
Post by: guessed on February 26, 2015, 06:36:13 pm
Flash == MicroSD

Everything runs on the one, removable, MicroSD card.  If I end up needing more perf, the Odroid units have the option of running an even faster flash module "at the same time" (although only one of them gets the faster bus access)
Title: Re: Hardware: What are you using to run openHAB?
Post by: Otje on February 26, 2015, 06:41:02 pm
Ok thanks for confirming, so we have a similar setup.
Title: Re: Hardware: What are you using to run openHAB?
Post by: GoBruins on February 26, 2015, 07:38:44 pm
Everything runs on the one, removable, MicroSD card.  If I end up needing more perf, the Odroid units have the option of running an even faster flash module "at the same time" (although only one of them gets the faster bus access)

That is the route I went; namely, an eMMC card. It seems significantly faster than a MicroSD card.

- JIm
Title: Re: Hardware: What are you using to run openHAB?
Post by: a-lurker on April 25, 2015, 05:57:50 pm
Quote
I think most folks using the micro platforms are using them as Runtime only.  In this mode, they're mounting the remote FS and editing on their convention machines
Just on remote editing and updating. DropBox is another option:

https://github.com/openhab/openhab/wiki/Dropbox-IO (https://github.com/openhab/openhab/wiki/Dropbox-IO)

@Electron Employer:  Looks like the Cubieboard4 only consumes 12.5 Watts :)  Your electrons are working overtime at 30W.
Title: Re: Hardware: What are you using to run openHAB?
Post by: silencery on August 05, 2015, 03:22:08 pm
I recently started on openHAB and have been testing on a full server. It's almost production-ready now, so I moved it to a Raspberry Pi 2.

The RPI 2 is usable, but too slow for my taste; rules which took milliseconds to process on the full server now take 2-3 seconds.

This is probably because our environment is fairly large. We have about 70 devices total with approximately 40 rules running a large variety of functions and bindings (Pushover, Nest, DSC, Plex, Astro, System Monitor, some custom stuff). Persistence is being handled by mysql on an external HDD, but I've also tested against RRD4J which was even worse in terms of performance.

I feel there's probably room for optimization, but I'm going to also experiment with some slightly better hardware (Odroid XU4) to see what the difference might be.
Title: Re: Hardware: What are you using to run openHAB?
Post by: guessed on August 06, 2015, 02:51:59 am
@silencery,
I'd be interested in knowing more details about your config, esp when it comes to the performance elements (eg vmstat 5, or similar). 

I've not run on an RPi2 (yet) but I've seen a number of people have issues with the iops achievable via the SD Card interface on those devices.

That said, I have ~1000 items in my setup, most with RRD-based persistence.  The bulk of these are coming/proxied from my MiOS/UI5 system (Alarm, ZWave etc), but ~150 are coming from @watou's native Nest Binding, and there are ~ 100 coming from native Harmony, Astro, Weather MQTT Bindings.  Most of the time, this system is idle... very idle. 

I see bursts in my ODroid C1 System when it's RRD's are written, as well as when some of my custom Rules (for Energy calcs) kick in, but they're not impacting Scene timing (I have Debug level logging enabled, and I write timing data for each Rule executed)

If you go the ODroid route, it would be worthwhile picking up their eMMC module, and the battery for the on-board RTC.  I replaced the U1 SDCard with one of these, and the difference is noticeable (and the U1 MicroSD Card is also noticeable over a regular Class 10 MicroSD Card).

The XU4 looks like a nice module.
Title: Re: Hardware: What are you using to run openHAB?
Post by: silencery on August 06, 2015, 04:39:49 am
1000 items? Wow :)

That's impressively huge AND you have debug logging on? Your IO must be taking a decent hit. That's very interesting info to share; it sounds like I do indeed have a lot of room for optimization.

Yes, I've been concerned about storage bottlenecking the RPI2, so I moved the root FS off SD onto a conventional HDD. Results are still the same, so it seems there's something else causing the performance hiccups. I've also taken care to watch the openHAB output to fix anything that may have been causing errors or warnings.

Here's a paste of the vmstat output. Everything seems to be ok. It's not even hitting the swap:

procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa
 1  0      0 344088 134824 283388    0    0     0     4  434  297  2  0 98  0
 0  0      0 344236 134824 283396    0    0     0    22  620  486  1  1 98  0
 1  0      0 343820 134828 283396    0    0     0     9  466  333  2  0 98  0
 0  0      0 344216 134828 283404    0    0     0     4  647  500  2  1 98  0
 0  0      0 343712 134828 283416    0    0     0     4  468  323  3  0 96  0
 0  0      0 344020 134828 283424    0    0     0     4  618  482  2  0 98  0
 0  0      0 343924 134828 283424    0    0     0     4  450  307  2  0 98  0
 0  0      0 344176 134828 283432    0    0     0     8  622  484  1  1 98  0
 0  0      0 344044 134828 283432    0    0     0    19  445  320  2  0 98  0
 4  0      0 344288 134828 283440    0    0     0     5  585  441  2  1 97  0
 0  0      0 343884 134832 283436    0    0     0     4  516  374  2  0 98  0
 3  0      0 343872 134832 283448    0    0     0     4  450  307  2  0 98  0
 0  0      0 344068 134832 283456    0    0     0    14  773  590  5  1 95  0
 1  0      0 343712 134832 283456    0    0     0     7  444  309  1  0 98  0

I should say the slow triggers are not consistent; sometimes things happen quickly, sometimes they take forever. I thought it was just an issue of the objects not being cached in memory yet, but the slowness happens even if the server has been running for a while. I'll need to find some time to trace.

The sluggishness comes up in various areas, but one example is a rule I setup to dim the lights when a movie is playing on the Plex client. The associated actions are pretty simple: evaluate if it's day/night. send a notification to plex via json, and dim the lights if a movie is playing during the evening. When i fire the trigger (start or resume a movie), this action can take anywhere from near instantaneous to 5-6 seconds to complete. Odd.

By the way, your suggestion for adding locks on shared objects in the other thread was awesome. It really helped enhance consistency by quite a bit. Now I just gotta focus on performance.

Thanks!
Title: Re: Hardware: What are you using to run openHAB?
Post by: guessed on August 09, 2015, 02:59:13 pm
@ silencery
1000 items? Wow :)
Actually it's not that much, a Vera Device expands to ~10-15 Items in openHAB so the #'s rack-up quickly ;)

Here's what mine looks like when the system is just ticking along:
Code: [Select]
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 0  0      0 101368 140900 285164    0    0     0  1664 9501 3803  4  4 88  3  0
 0  0      0 101496 140900 285164    0    0     0    21 8349  547  0  0 99  0  0
 0  0      0 101504 140900 285164    0    0     0     1 8307  451  0  0 100  0  0
 0  0      0 101472 140900 285164    0    0     0     0 8312  447  0  0 100  0  0
 0  0      0 101472 140900 285164    0    0     0    31 8313  463  0  0 100  0  0
 0  0      0 101440 140900 285164    0    0     0     2 8323  461  0  0 100  0  0
 0  0      0 101496 140900 285164    0    0     0     0 8334  463  1  0 99  0  0
 0  0      0 101000 140900 285176    0    0     0     0 8340  468  5  0 95  0  0
 0  0      0 101224 140900 285176    0    0     0     3 8337  487  1  0 99  0  0
 0  0      0 101232 140900 285176    0    0     0     0 8322  468  0  0 100  0  0
 0  0      0 101200 140900 285176    0    0     0     0 8345  490  0  0 100  0  0
 0  0      0 101200 140900 285180    0    0     0     3 8315  461  0  0 99  0  0
 0  0      0 100772 140908 285180    0    0     0  1671 9385 3484  4  5 88  4  0
 0  0      0 100860 140908 285180    0    0     0    25 8333  510  0  0 99  1  0
 0  0      0 100836 140908 285180    0    0     0     5 8310  454  0  0 100  0  0
 0  0      0 100836 140908 285180    0    0     0     0 8460  811  0  0 99  0  0

Of course, during the busy times it looks a lot different.  The largish figures under Blocks Out are the RRD Sync, which is set to write each minute, in addition to each-change.  Looking at the Wait stat, it only has a small impact on the system during that time.

For my logging, I have DEBUG enabled with both Local FS and SYSLOG as output.  The latter is another RPi where I centralize all my device logs, and it's on an Attached USB Drive where I offline/archive logs for months (Router, openHAB, Mac, etc, etc).  In the worst case, I could turn off openHAB's DEBUG Logging and I've have a copy on the other machine.


Your #'s aren't anything to worry about, so I'd expect the blockage to be somewhere else.  It would be worthwhile double-checkin the locks you've added to ensure they're tightly scoped around "just" the bit that needs the consistency lock.  I'd also look at those rules and create distinct locks for the bits that need them, just incase there's any unneeded sharing going on.

Slow Rule executions will occur on the first time each Rule is executed after Startup (or after a Rule has been edited, causing a Reload).  These timings are often large, even in fast-CPU environments and don't seem to be avoidable, but they're [largely] a one-time cost - unless you're hot editing Rules frequently.

It may also be that your VMStat #'s are quite different during Scene execution, so you may want to create a script to gather the logs over a longer period so they can be looked at in more detail.

Quote
I've also taken care to watch the openHAB output to fix anything that may have been causing errors or warnings.
Definitely good practice... esp after you've just written any new Rules ;)

I put timing hooks into quite a few of my scenes, which allows me to go back and see if there are long-running things "after the fact".

The typical form of these is:

Code: [Select]
rule "..."
when
    ...
then
    var t = now

    ...
    var long x = now.getMillis - t.getMillis
    logInfo("eagle", "PERF Pull-Data-from-Eagle elapsed: " + String::valueOf(x) + "ms")
end

These have come in VERY handy for all sorts of issues.


The other thing I changed a lot of is my use of "Item... received update ..." in Rules.  I've converted almost all of these to use "Item ... changed" or "Item ... changed to ...".

I used to put all the logic in the Rule itself, and going this route has helped a bunch (as the System is now doing the comparisons, instead of the Rule itself)
Title: Re: Hardware: What are you using to run openHAB?
Post by: aPL on September 07, 2015, 02:55:56 pm
Running:

Hardware:
- Asus Q1900ITX - http://www.asrock.com/mb/Intel/Q1900-ITX/
- 8 GB of ram
- 2x 120 GB kingston SSD Drives (I know, but it's a prototype for now)
- zwave bindings: vera lite, 2x vera edge, aeon usb stick (all zwave devices has direct connection to a vera so everything is instant, and large commands are pretty fast)

Software:
- Proxmox 4.3
- zfs mirror on ssd drives
- one container for each: mysql, mqtt, apache+php+nodejs for custom interfaces, nagios, email forwarder, nodered, openhab, and other

Usage on idle: 1.4 GB of ram + 0.4 for proxmox, 1% IO delay

Will expand this into a high-availability 3-node proxmox cluster, with only one node standing required to be able for automation and remote controll to work, once I get the hang of OpenHab.
Title: Re: Hardware: What are you using to run openHAB?
Post by: guessed on September 07, 2015, 03:19:53 pm
That's one heck of a config.  Have you worked out what's eating the RAM?  OH isn't usually all that big...
Title: Re: Hardware: What are you using to run openHAB?
Post by: BOFH on September 07, 2015, 04:32:24 pm
He's also running mysql, mqtt, apache+php+nodejs for custom interfaces, nagios, email forwarder and nodered apart from OH. Which goes a long way towards the memory usage numbers.
Title: Re: Hardware: What are you using to run openHAB?
Post by: guessed on September 07, 2015, 10:05:05 pm
He's also running mysql, mqtt, apache+php+nodejs for custom interfaces, nagios, email forwarder and nodered apart from OH. Which goes a long way towards the memory usage numbers.

Yeah, I saw that, but was interested in which component was hogging the memory.  There are a bunch of folks using OH, MQTT together on small footprint HW ... so I'm guessing Apache, but a breakdown would be handy.
Title: Re: Hardware: What are you using to run openHAB?
Post by: BOFH on September 07, 2015, 10:23:30 pm
My guess would be both MySQL and the Apache PHP combination.
Title: Re: Hardware: What are you using to run openHAB?
Post by: hellovn on January 17, 2016, 09:34:46 pm
I am running it in my iMac with 3.5GHZ CPU, SSD drive and 32GB RAM :D. I just installed the Hue plugin. It may take me a few weeks to set up everything up :(
Title: Re: Hardware: What are you using to run openHAB?
Post by: CelticWebs on November 23, 2016, 08:04:08 am
I'm running it on my i7 Mac mini Server with Sierra.  I only just started so I haven't got to grips with it yet.

My Mini Server was already on to run various things such as CCTV software and the HomeKit and Alexa bridge softwares so I decided I'd give openHab2 a go.
Title: Re: Hardware: What are you using to run openHAB?
Post by: stefaanbolle on November 23, 2016, 08:51:58 am
Running it flawlessly from a RPI2 together with a MQTT broker, apache web server and MySQL database server.
I'll add openluup to it soon.
Title: Re: Hardware: What are you using to run openHAB?
Post by: akbooer on November 23, 2016, 09:00:44 am
Why would you run openHAB and openLuup?
Title: Re: Hardware: What are you using to run openHAB?
Post by: stefaanbolle on November 23, 2016, 10:34:49 am
To check how much can be done with 1 hardware system (rpi). I need Openhab today to interface Nikobus.