Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
b03532eb
Commit
b03532eb
authored
Jun 09, 2015
by
krousey
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9477 from rassie/patch-1
Actually ignore hyperthreading
parents
02c9d281
f204a0ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Vagrantfile
Vagrantfile
+1
-1
No files found.
Vagrantfile
View file @
b03532eb
...
@@ -89,7 +89,7 @@ elsif host =~ /linux/
...
@@ -89,7 +89,7 @@ elsif host =~ /linux/
#This should work on most processors, however it will fail on ones without the core id field.
#This should work on most processors, however it will fail on ones without the core id field.
#So far i have only seen this on a raspberry pi. which you probably don't want to run vagrant on anyhow...
#So far i have only seen this on a raspberry pi. which you probably don't want to run vagrant on anyhow...
#But just in case we'll default to the result of nproc if we get 0 just to be safe.
#But just in case we'll default to the result of nproc if we get 0 just to be safe.
$vm_cpus
=
`cat /proc/cpuinfo | grep 'core id' |
uniq
| wc -l`
.
to_i
$vm_cpus
=
`cat /proc/cpuinfo | grep 'core id' |
sort -u
| wc -l`
.
to_i
if
$vm_cpus
<
1
if
$vm_cpus
<
1
$vm_cpus
=
`nproc`
.
to_i
$vm_cpus
=
`nproc`
.
to_i
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment