Remove dead code

These functions are no longer called anywhere and can be removed.

Change-Id: I6d59a02864d4d5f6445117335d7488ba5db33cd3
This commit is contained in:
Stephen Finucane 2016-12-09 13:48:06 +00:00
parent bfefa68acb
commit 4e58eb7df3
1 changed files with 0 additions and 16 deletions

View File

@ -13,8 +13,6 @@
# License for the specific language governing permissions and limitations
# under the License.
import multiprocessing
from oslo_concurrency import processutils
from oslo_log import log as logging
@ -132,20 +130,6 @@ class TestServerNumaBase(manager.NetworkScenarioTest):
placement.append(cpus.strip())
return placement
def get_numa_nodes(self):
cpu_per_soc = self._get_cores()
ret = [str(x * cpu_per_soc) + '-' + str(x * cpu_per_soc + cpu_per_soc -
1) + ',' + str(
x * cpu_per_soc + 2 * cpu_per_soc) + '-' +
str(x * cpu_per_soc + 3 * cpu_per_soc - 1) for x in range(2)]
return ret
def _get_cores(self):
# get number of real CPUs per socket, assuming a dual-socket,
# HT-enabled board (2 * 2)
cores = multiprocessing.cpu_count() / (2 * 2)
return cores
class TestServerNumaTopo(TestServerNumaBase):
"""