简体   繁体   English

Google Cloud Compute Engine 15%限制

[英]Google Cloud Compute engine 15% limitation

I am running NLP algorithms on Google Cloud but i notice that they are not quicker than my computer. 我正在Google Cloud上运行NLP算法,但是我注意到它们的速度并不比我的计算机快。

When I go on the monitor, the CPU is limited to 15%. 当我打开显示器时,CPU限制为15%。 Is there a way to reach 100%? 有没有办法达到100%? CPU Performance on NLP algorithm on Python Python上NLP算法的CPU性能

There are several reasons why you might not be reaching 100% CPU: 您可能无法达到100%CPU的原因有很多:

  1. You have many CPU cores, but your program is only running on one. 您有许多CPU内核,但是您的程序仅在一个内核上运行。 For example, if you have 6 CPU cores but are only using one, then you would be at 1/6 = %16 CPU usage. 例如,如果您有6个CPU内核,但仅使用一个,则您的CPU使用率为1/6 =%16。 To fix this, you will have to change your program to run on all CPUs. 要解决此问题,您将必须更改程序以在所有CPU上运行。 (Note that native python doesn't support running more than one thread at once!) (请注意,本机python不支持一次运行多个线程!)

  2. You may be limited by something other than CPU. 您可能会受到CPU以外的限制。 For example, if you are fetching data over the network, you might be limited by bandwidth or latency. 例如,如果要通过网络获取数据,则可能会受到带宽或延迟的限制。 Or disk throughput etc. 或磁盘吞吐量等

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM