Skip to content
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

ble scan performance #32

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

ble scan performance #32

wants to merge 4 commits into from

Conversation

sevenbitbyte
Copy link
Member

@sevenbitbyte sevenbitbyte commented Feb 15, 2024

@sevenbitbyte sevenbitbyte changed the title close #23 ble scan performance Feb 15, 2024
@sevenbitbyte
Copy link
Member Author

sevenbitbyte commented Feb 17, 2024

Observing decent performance now. Can easily tune to prevent bogging down but the current solution is just to drop packets if and pause the starting new scans until the current one is finished writing to the DB.

Imo its revealing the need for different scan storage effort levels:

  • No storage
    • Only save data from bookmarks & alerts
  • Best effort
    • Don't start new scan until current one has finished writing
  • Lossless
    • Never pause scanning
    • Might run out of RAM
    • Might bog down CPU with events
  • High speed (*would need to be indexed before we can deliver queries)
    • Just dump raw packets to disk as fast as possible without updating in db

@sevenbitbyte
Copy link
Member Author

Ran into a blocker on my primary dev box 😭

Seems like hardware support is getting flaky for some reason

abandonware/noble#312 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

improve BleMonitorTask's cache Performance tune ble monitor
1 participant