Browse Source

Optimizing thread count for plaintext (#3393)

Sébastien Ros 7 years ago
parent
commit
8fc8ec23f4

+ 1 - 1
frameworks/CSharp/aspnetcore/aspnetcore-base.dockerfile

@@ -7,6 +7,6 @@ RUN apt-get install apt-transport-https
 RUN curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /etc/apt/trusted.gpg.d/microsoft.gpg
 RUN curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /etc/apt/trusted.gpg.d/microsoft.gpg
 RUN sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
 RUN sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
 RUN apt-get update
 RUN apt-get update
-RUN apt-get install -y dotnet-sdk-2.0.0
+RUN apt-get install -y dotnet-sdk-2.0.3
 
 
 ENV PATH="/root/.dotnet:${PATH}"
 ENV PATH="/root/.dotnet:${PATH}"

+ 1 - 1
frameworks/CSharp/aspnetcore/setup-mvc-plaintext.sh

@@ -1,3 +1,3 @@
 #!/bin/bash
 #!/bin/bash
 
 
-source run-linux.sh mvcplaintext $(($(nproc)*3/10))
+source run-linux.sh mvcplaintext 2

+ 5 - 0
frameworks/CSharp/aspnetcore/setup-plaintext.sh

@@ -5,6 +5,11 @@ then
     threadCount=24
     threadCount=24
 fi
 fi
 
 
+if [ "$(nproc)" -eq "28" ]
+then
+    threadCount=8
+fi
+
 if [ "$(nproc)" -eq "4" ]
 if [ "$(nproc)" -eq "4" ]
 then
 then
     threadCount=2
     threadCount=2