-
Notifications
You must be signed in to change notification settings - Fork 46
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
performance issue? #12
Comments
Interesting, first I've heard of this problem. Have you checked to see if it's dumping any errors to syslog? Is Bluelog actually working and seeing devices, or does it seem to have locked up as well? |
journalctl looks ok:
...as does syslog, auth.log, daemon.log, user.log, and messages... (at most, only show the init Ok and shutdown ok) When Bluelog is running, there is 3-10 seconds of delay between when I enter a command or hit the return key a few times (in another window), and when there is any kind of response. Directly running sudo hciscan lescan, does not produce any delay response. Bluelog did list a device last night, but currently, I'm at work, and nothing is turned on at home (where my RPi is).
Top:
JohnG |
Does the same thing happen when you start Bluelog as a non-interactive daemon (the -d option) as when it's being run in the foreground? Have you tried using -s to log only to syslog, and not write a log file? Basically, we can see that Bluelog isn't doing much with the CPU/RAM, but I'm wondering if somehow it's tying up system I/O which is why you're getting general input lag. |
Also, did you mention which Pi version this is on? I don't have a Pi 4 yet, but I've got pretty much all of the previous versions. Maybe I can install Stretch to see if I can recreate the issue. |
Yep :( (enabled with both -d and -s, but still created highly delayed responses)
Yes, the behavior does seem more consistent with an I/O issue...
Hardware : BCM2835 pi@raspi:~/Downloads/Bluelog $ uname -a |
I installed Bluelog on my RPi4... it didn't show the "slow down" behavior, but it did seem to trip up communications in some way. After I started it, I wasn't able to start another ssh session to RPi, nor even ping it from my laptop. Though on the RPi, I was able to ping my laptop. Then, communication started working again, as I was able to ping/ssh to the RPi, from my laptop. After starting Bluelog, I did see a couple bluetooth mac addresses, but then address reporting stopped (I have a BTLE motions sensor that sent an advertisement). I then issued a bluelog -k (in another window), and the process appeared to gracefully exit.
No indications of an issue in syslog:
JohnG |
Sorry - strike that bit about connectivity issue to RPi4 - I forgot to update the IP in putty... Seems to run fine without I/O impact on RPi4. Possibly an issue with other contents on my RPi3. One question... should Bluelog display LE devices? Seems to only show non-LE... |
Yeah, I wasn't able to replicate on the Pi 3 so I wonder what else is going on there. Would love to know what the problem is, but hard to say with so many variables. There any notable pieces of software you remember installing on the Pi 3 that could be conflicting? As for BLE, unfortunately Bluelog only works with "Classic" Bluetooth devices. When I started this project, BLE hadn't even been formally adopted, and it was still another few years before the hardware actually became common enough to test against. I've looked at trying to add BLE support, but BlueZ is kind of a mess and it's not nearly as simple as you might think. BLE scanning is a whole different thing than Classic scanning, and requires root permissions. As it stands, Bluelog won't even run if you're root so as not to open up any potential security issues with the number of files it can read/write. It's certainly not impossible, but would require a substantial rewrite that honestly I'm not sure is worth it anymore. If you need support for both Classic and BLE, then BlueHydra from Pwnie Express is probably your best bet. |
Unfortunately, no. It would take a while to try to figure it out, but in learning BLE isn't currently available, sadly, looks like this will be "one of those things". In my particular case, I want to pick up BLE advertisements (from cheap IR motion sensors). My pref would be for this function to be native to RPi, but worst case, I can use an Arduino to pick up the advertisements and relay them to RPi. It's not the cleanest solution, but it should do what I need. Thank you for Bluelog - I still have another project that it might come in handy for. |
Compiled/running the latest Bluelog (downloaded yesterday) on Raspberry Pi Stretch (4.19.66-v7+).
When I run bluelog, it seems to be using up resources, or apparently blocking resources. "top" doesn't show any significant CPU usage, but just hitting the return character a few times in another window, shows that something is being seriously slowed down. I wasn't even able to start a new putty session - seems it timed out, waiting to connect.
Has anyone else seen this?
The text was updated successfully, but these errors were encountered: