-
-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
64 bit recommendations discussion #1950
Comments
I'm not going to lie, I have not ever seen any significant issues with my decently large setup. I have been running 64bit on my system for 6 months now with no issue. I would note that it was really an experiment because I even have the rare 1GB model of the RPi 4. I consistently see about 75% usage of memory with zram enabled. I know there are some bugs, but some are unrelated to 64bit directly and just need to be ironed out. I don't know that it's worth hiking the requirements so much if there is a pretty good chance for success with a setup like mine which is pretty much worst case scenario. |
Well. With my main setup, me neither. |
I would suggest for the moment we continue as planned and monitor the issues, ideally these should get fixed before the OH 5 release and I should hope that there are not any major issues that would require a large spec bump to our baseline. I do see your concerns and share some of the same reservations, but I don't want to make a big change when most people don't have a ton of issues, that makes me think it's more on the minor bug side that should be reported, investigated, and solved. |
While we might identify the remaining issues, what shocked me most about the issue referred to above is that on ALL systems Take a second to think what that means to paging activity harming SD, or performance in general. |
But thats just because of a bug, right? It didn't used to be that way IIRC |
As you know I'm providing a commercial EM system on top of openHAB(ian) so I have several systems rolled out that share the same config. Some I had to go back to 4.2.3 because of rules not running bug but meanwhile they all work. I believe that's just what you get on every (full-)64 bit system. |
Yeah, I'm not sure what would cause that. I've never seen that happen on a machine, have you checked the Java memory settings to see if you can tweak those? |
You have never seen that large mem usage with recent 64 bit openHABian on RPi? |
I've used upwards of 7-10 openHABian instances on 64bit for varying lengths of time. |
Measured how? Here's a typical line from top. 4.6G process size, 422MB resident, on a 1GB RPi3
Do you know of a means to determine which bundle/binding is using how much space? Maybe that's what makes the difference? If you have a spare RPi, could you try installing my image from https://storm.house/download/storm.house-neu-202501061550.img.xz and check with that? EDIT: I noticed java draws the full amount of mem right on start (when it doesn't know yet which bundles it is gonna start) so I don't believe that's the reason. |
OK I thought we were talking about Resident memory as that is what reflects memory usage on the host system. For virtual size mine is also ~4 GB but I don't notice any real impact as the system manages it pretty well.
As much as I wish I did, I don't know any magic special command to show that. I suspect you might be able to figure some statistics out by building a whole system and running it in debug mode, but that would probably also not accurately reflect a production system. I don't currently have a RPi available but I'd be happy to test next time I have one open. |
ok so we're at least on the same page now. As my edit said allocation is right on java start so unrelated to what bindings are there. So it wont make sense analysing their mem use, right? Guess you don't need to mock with my images. |
Sounds like a good approach to seeing if we can identify a root cause. I don't currently have a ton of time to dedicate to testing, so if you want to take the lead on this, that would be great. |
I don't have much time either at the moment, but I think it's worth to dedicate more attention to this. Just read on the forum that someone with a huge OH startup time (14 mins) moved from openHABian to DietPi and that reduced his startup to 1 min. |
BTW do we really need a 64bit OS to run a 64bit Java? Isn't Java still Java, so eventually any 64bit variable would be 'cut' into 2 x 32 bit but in the end, the same java code would still work? Have you ever tried a different Java 17 package than OpenJDK? |
I've used a couple of different JDKs but never really paid attention to performance. That would be interesting to do. There are some libraries that openHAB uses both internally and for addons that have switched to only 64bit support for newer versions. In general your theory is correct but it's becoming less true as Java shifts to more specialized support (or at least developers do anyways). |
Hi @ecdye
Given the announcement to move to all-64 in OH5, I'm struggling to believe if our current handling of that is the right way or too aggressive for now. I have become sceptic about 64 bit.
There's at least one hard-to-track problem I experienced myself, too, that I believe to be related to the move to 64bit OS on Raspi, plus a number of signs. Java takes 4+ GB, saw even 5.5+ on some user boxes.
On mine, rule engine refused to run although the bundle says it's active.
I wouldn't be surprised if there's some issue looming and so far going unspotted that at times OH/Java cannot allocate all the memory in wants in a situation.
For now I'd recommend to throttle back.
The text was updated successfully, but these errors were encountered: