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

The softhsm is terribly slow in the uri test #515

Open
Jakuje opened this issue Jan 27, 2025 · 0 comments
Open

The softhsm is terribly slow in the uri test #515

Jakuje opened this issue Jan 27, 2025 · 0 comments

Comments

@Jakuje
Copy link
Contributor

Jakuje commented Jan 27, 2025

Describe the bug
Sometimes, softhsm is very slow on the macos in the uri test. We bumped the timeout to 90 second (while it takes 5 on other combinations), but it still sometimes times out:

79/88 pkcs11-provider:softhsm / uri            TIMEOUT        90.05s   killed by signal 15 SIGTERM

Checking the output, I saw 265 queries to openssl with different uris in

https://github.com/latchset/pkcs11-provider/actions/runs/12995228522/job/36241470911

On main, this finished in 80 seconds (we probably got a faster machine):

79/88 pkcs11-provider:softhsm / uri            OK             82.56s

https://github.com/latchset/pkcs11-provider/actions/runs/12995441028/job/36242150007

Softoken ran the same test for 40 seconds (but note, that it has fewer tests as it does not support RSA-PSS with ALLOWED_MECHANISMS and EdDSA keys:

78/88 pkcs11-provider:softokn / uri            OK             40.51s

On Linux, this test is bit faster, but it still takes a lot of time in softhsm compared to softokn:

79/88 pkcs11-provider:softhsm / uri            OK             46.47s
78/88 pkcs11-provider:softokn / uri            OK              5.80s

To Reproduce
Run all tests

Expected behavior
No timeouts

Operating environment (please complete the following information):

  • OS: MacOS
  • Version 14

Token and application used (please complete the following information):

  • Device: SoftHSM
  • PKCS11 Driver version: ?

Additional context
We can bump the timeout even more, try to cut some objects (>200 objects is quite a lot -- I am not even sure where does this come from) or drop softhsm altogether (but I still find it quite useful).

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

No branches or pull requests

1 participant