You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed a very different performance running commands on lxd container so, simple as sh.nice()
Host
$ time python -c "import sh; sh.nice()"
real 0m0.077s
user 0m0.052s
sys 0m0.012s
Container
$ time python -c "import sh; sh.nice()"
real 0m0.215s
user 0m0.088s
sys 0m0.120s
My next step was use strace which says that the container version call 1048796 times the syscall close!! The majority of the times it returns EBADF (Bad file descriptor).
Here is what I have done, any idea whats happening?
I do not know if it is a sh module issue or not but it is happening only here..
https://build.opensuse.org/request/show/815418
by user StevenK + dimstar_suse
- Update to 1.13.1:
* regression fix if `_fg=False` [#520](amoffat/sh#520)
* minor Travis CI fixes [#492](amoffat/sh#492)
* bugfix for boolean long options not respecting `_long_prefix` [#488](amoffat/sh#488)
* fix deprecation warning on Python 3.6 regexes [#482](amoffat/sh#482)
* `_pass_fds` and `_close_fds` special kwargs for controlling file descriptor inheritance in child.
* more efficiently closing inherited fds [#406](amoffat/sh#406)
* bugfix where passing invalid dictionary to `_env` will cause a mysterious child 255 exit code. [#497](amoffat/sh#497)
* bugfix where `_in` using 0 or `sys.stdin` wasn't behaving like a TTY, i
I noticed a very different performance running commands on lxd container so, simple as sh.nice()
Host
Container
My next step was use strace which says that the container version call 1048796 times the syscall close!! The majority of the times it returns EBADF (Bad file descriptor).
Here is what I have done, any idea whats happening?
I do not know if it is a sh module issue or not but it is happening only here..
Running strace with output in different files. There is one too big strace.2618
The content of the file something like this:
The text was updated successfully, but these errors were encountered: