Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lscpu: add page #1565

Merged
merged 2 commits into from
Oct 24, 2017
Merged

lscpu: add page #1565

merged 2 commits into from
Oct 24, 2017

Conversation

sbrl
Copy link
Member

@sbrl sbrl commented Oct 21, 2017

This time I'm pulling rabbits out of hats by demonstrating a thing or two you didn't know lscpu. For instance, did you that Linux lets you dynamically enable and disable cpu cores?


  • The page (if new), does not already exist in the repo.

  • The page (if new), has been added to the correct platform folder:
    common/ if it's common to all platforms, linux/ if it's Linux-specific, and so on.

  • The page has 8 or fewer examples.

  • The PR is appropriately titled:
    <command name>: add page for new pages, or <command name>: <description of changes> for pages being edited

  • The page follows the contributing guidelines

@sbrl sbrl added the new command Issues requesting creation of a new page. label Oct 21, 2017

- Display information about offline CPUs:

`lscpu --offline`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what I get.

$lscpu --offline
lscpu: options --all, --online and --offline may only be used with options --extended or --parse.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops! Looks like I made a slight mistake. Correcting now!

@agnivade
Copy link
Member

Wow, can't believe we didn't have lscpu ! That's one of my favorite commands.

For instance, did you that Linux lets you dynamically enable and disable cpu cores?

I didn't. But I don't see lscpu enabling or disabling cpu cores. Did you mean to say in general or lscpu can do the job of enabling/disabling ?

@sbrl
Copy link
Member Author

sbrl commented Oct 22, 2017

Ah, no. The actual enabling / disabling is done by echoing 0 / 1 to a file. See https://www.cyberciti.biz/faq/debian-rhel-centos-redhat-suse-hotplug-cpu/linux-turn-on-off-cpu-core-commands/

@sbrl sbrl merged commit 73ccd75 into master Oct 24, 2017
@sbrl
Copy link
Member Author

sbrl commented Oct 24, 2017

Merging since there's been activity for ~2 days.

@owenvoke owenvoke deleted the page-lscpu branch March 27, 2018 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new command Issues requesting creation of a new page.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants