This repository was archived by the owner on Jul 27, 2022. It is now read-only.
Open
Conversation
Vagrantfile sets up an ubuntu 12.04 with: * trusty backported kernel 3.13. * Protobuf from github * Gflags from github * re2 from googlecode * apparmor from ubuntu packages * g++ Version 4.7 from ubuntu-toolchan-r/test PPA * golang from ubuntu packages Vagrant then compiles lmctfy, tests it's installed and reboots into the newer kernel
bieli
reviewed
May 12, 2018
|
|
||
| re2_version=20140304 | ||
| protobuf_version=2.6.1 | ||
| compile_threads="$(lscpu | awk '/^CPU\(s\)/ {print $2}')" |
There was a problem hiding this comment.
On my os/arch/machine:
$ uname -a
Linux machine 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04 LTS
Release: 18.04
Codename: bionic
I have problem with awk below pattern:
My solution it's:
$ lscpu
Architektura: x86_64
Tryb(y) pracy CPU: 32-bit, 64-bit
Kolejność bajtów: Little Endian
CPU: 8
...
$ lscpu | awk '/^CPU:/ {print $2}'
8
Maybe you should correct this.
There was a problem hiding this comment.
Another simple way to get CPUs:
$ egrep -c '(vmx|svm)' /proc/cpuinfo
8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Vagrantfile sets up an ubuntu 12.04 with:
Vagrant then compiles lmctfy, tests it's installed and
reboots into the newer kernel