HelloZeroNet / HelloZeroNet/ZeroNet

Allow Zeronet python to use multiple CPU threads?

Abierto
#2,312 27 comentarios 1 reacción 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
18.8k
Forks
2.3k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

This is issue especially on zeronet proxies or when simply one is hosting many sites. You can see the zeronet is maxing out the CPU thread and leaves rest CPU threads unused.. I experienced this on all Linux distributions on which i tried to setup zeronet with [bigger number of zites](http://127.0.0.1:43110/1HMLvnRWViMnuvZc5LK4Dm86sZNcSH1jdh/?Topic:1553085871_1L4dZcDF2maSKHDy788yhxpYnBWnXadUtS/3212+zeronet+sites) and i think it may be lagging my Windows zeronet too. [Here is](http://127.0.0.1:43110/1TaLkFrMwvbNsooF4ioKAY9EuxTBTjipT/?Topic:1565037100_1L4dZcDF2maSKHDy788yhxpYnBWnXadUtS#comment_92_1EAD2zXkzgJf6M7xQ4jG5FHCxUTez9NJJ4) what largest zeronet proxy maintainer (d14n@) says about this.

Can ZeroNet be made to utilize more CPU threads?

https://stackoverflow.com/questions/4496680/python-threads-all-executing-on-a-single-core
https://stackoverflow.com/questions/203912/does-python-support-multiprocessor-multicore-programming
https://wiki.python.org/moin/GlobalInterpreterLock
https://docs.python.org/3/library/multiprocessing.html

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

No repository file, entry point, or test is named. Start with the linked Python threading, Global Interpreter Lock, and multiprocessing references, then inspect ZeroNet's current concurrency model; done would require a defined approach for using multiple CPU threads or processes and evidence that hosting many sites distributes CPU work safely.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
python
Área
backend, performance
Tipo de issue
Nueva funcionalidad
Dificultad
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
20/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.