Skip to content

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

2 participants