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

cosmos sdk very slow on WSL2 for waiting a lock #14148

Closed
AlexiaChen opened this issue Dec 5, 2022 · 1 comment
Closed

cosmos sdk very slow on WSL2 for waiting a lock #14148

AlexiaChen opened this issue Dec 5, 2022 · 1 comment

Comments

@AlexiaChen
Copy link

AlexiaChen commented Dec 5, 2022

Use strace simd keys list to trace issue, it seems waiting a lock

...
newfstatat(AT_FDCWD, "/home/mathxh/config/config.json", 0xc000ffe5e8, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/mathxh/config/config.toml", 0xc000ffe6b8, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/mathxh/config/config.yaml", 0xc000ffe788, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/mathxh/config/config.yml", 0xc000ffe858, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/mathxh/config/config.properties", 0xc000ffe928, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/mathxh/config/config.props", 0xc000ffe9f8, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/mathxh/config/config.prop", 0xc000ffeac8, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/mathxh/config/config.hcl", 0xc000ffeb98, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/mathxh/config/config.tfvars", 0xc000ffec68, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/mathxh/config/config.dotenv", 0xc000ffed38, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/mathxh/config/config.env", 0xc000ffee08, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/mathxh/config/config.ini", 0xc000ffeed8, 0) = -1 ENOENT (No such file or directory)
write(3, "l\1\0\1\25\0\0\0\2\0\0\0\217\0\0\0\10\1g\0\2sv\0\1\1o\0\30\0\0\0"..., 181) = 181
futex(0xc000100148, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x37dc588, FUTEX_WAIT_PRIVATE, 0, NULL

the program blocked by futex. need to wait a long time. If you use native linux not virtual machine, it will not happen this issue

@AlexiaChen
Copy link
Author

AlexiaChen commented Dec 5, 2022

Solved by myself. I rechecked log from strace , find maybe something of permission leading this issue. so , I run with sudo, it runs normal.

I write a blog for debugging this issue in Chinese AlexiaChen/AlexiaChen.github.io#170

Finally, I run with --keyring-backend file instead of default os when related keys operation , its works fine

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