termux / proot

An chroot-like implementation using ptrace.
https://wiki.termux.com/wiki/PRoot
Other
751 stars 161 forks source link

Proot usage problem #155

Closed wangmings closed 3 years ago

wangmings commented 3 years ago

Why use the termux-chroot command on termux and enter pip list , there will be a stuck situation!

Grimler91 commented 3 years ago

Please provide more information.

What output are you getting? What output did you expect? How can the issue be reproduced? What device, and android version, and termux version, and proot version, are you using?

wangmings commented 3 years ago

Android version: 10 Termux version: 0.108

Question: Start the termux-chroot command! Cause some commands to freeze! Long execution time!

Problem demonstration:

  1. Open Termux
  2. Enter the termux-chroot command
  3. Enter pip list

    You can see it from the above demo! It takes longer to start the termux-chroot command and execute the pip list command!

Grimler91 commented 3 years ago

Running commands in proot might take longer time than in a normal shell since proot adds an additional layer intercepting syscalls.

Closing as not a bug.

ZhymabekRoman commented 3 years ago

It takes longer to start the termux-chroot command and execute the pip list command!

Command pip list even on a powerful computer solidly launches, it took me 15 seconds on my laptop.

$ time pip freeze
....

real    0m16,148s
user    0m5,090s
sys     0m0,020s
wangmings commented 3 years ago

Is there no solution

ZhymabekRoman commented 3 years ago

Is there no solution

proot has absolutely nothing to do with this problem, and this cannot be solved in any way