Skip to content
Chris Paquin

Chris Paquin

AI, Virtualization, Containers, Infrastructure, Linux

  • Home
  • About
  • Categories
  • Search

  • Deploying a Non-NUMA Aligned Instance in RHEL OSP

    nova OpenStack Performance Tuning
    08/22/2017

    amd_45nm_2.jpg

    When you Nova boot an instance in an OSP Overcloud deployed using SR-IOV and CPU Pinning, that instance will be NUMA aligned, meaning that its vCPUs, memory, and SR-IOV VF (Virtual Function) will all be local to the same NUMA node.  Nova will not allow you to deploy a non-NUMA aligned instance in such an environment (which you might want to do when testing the cross-NUMA penalty of your hardware).

    If you are looking to misalign an instance for the purpose of testing, you can use the following process.

    First, ssh to the Compute node running your test instance.  In the example below, we can see that the libvirt shows VM three as being pinned to odd numbered cores. On this hardware that means, NUMA node 1.

    In this example, our VM has 4 cores.

    # virsh vcpupin 3
    VCPU: CPU Affinity
    ——————————
       0: 11
       1: 35
       2: 17
       3: 41
    Using “virsh vcpupin“ you can move the pinned VM cores to the pCPUs local to numa node 0.
    In the example below, we start my migrating vCPU 0 to pCPU 12.
    # virsh vcpupin 3 0 12
    Now we migrate vCPU 1 to pCPU 14.
    # virsh vcpupin 3 1 14
    Now we migrate vCPU 2 to pCPU 18.
    # virsh vcpupin 3 2 18
    Now we migrate vCPU 3 to pCPU 20.
    # virsh vcpupin 3 3 20
    Now, pinning now appears as follows.
    # virsh vcpupin 3
    VCPU: CPU Affinity
    ———————————-
       0: 12
       1: 14
       2: 18
       3: 20
    • Share on X (Opens in new window) X
    • Share on Facebook (Opens in new window) Facebook
    • Share on LinkedIn (Opens in new window) LinkedIn
    • Share on Reddit (Opens in new window) Reddit

    Like this:

    Like Loading…
  • Driving in the Fast Lane: Huge Page support in OpenStack Compute

    Misc
    07/14/2017

    arger page sizes there is also an increased potential for memory to be wasted as processes must allocate memory in pages but not all of the memory on the page may actually be required.

    Source: Driving in the Fast Lane: Huge Page support in OpenStack Compute

    • Share on X (Opens in new window) X
    • Share on Facebook (Opens in new window) Facebook
    • Share on LinkedIn (Opens in new window) LinkedIn
    • Share on Reddit (Opens in new window) Reddit

    Like this:

    Like Loading…
  • What’s new in Red Hat OpenStack Platform 11?

    Misc
    05/31/2017

    Source: What’s new in Red Hat OpenStack Platform 11?

    • Share on X (Opens in new window) X
    • Share on Facebook (Opens in new window) Facebook
    • Share on LinkedIn (Opens in new window) LinkedIn
    • Share on Reddit (Opens in new window) Reddit

    Like this:

    Like Loading…
  • Red Hat OpenStack Platform 10 is here! So what’s new?

    Misc
    04/25/2017

    Source: Red Hat OpenStack Platform 10 is here! So what’s new?

    • Share on X (Opens in new window) X
    • Share on Facebook (Opens in new window) Facebook
    • Share on LinkedIn (Opens in new window) LinkedIn
    • Share on Reddit (Opens in new window) Reddit

    Like this:

    Like Loading…
  • Asus RT-AC66U: How to Configure DHCP Static IP Reservations for IOT/Smart Home Devices

    Home Automation Homelab Networking
    03/07/2017

    533bdddb0ad6e58

    I’ve never been a fan of using DHCP reservations to reserve an IP address for a device. However, there are a few situations where a static reservation is the best route to take.

    Try your hand with Home Automation via devices like the Wink Hub,  IP cameras,  smart plugs,  satellite receivers, or even the Raspberry Pi and you will know full well the right time to use a static IP reservation.

    In this post, I am going to walk you through that process on the Asus RT-AC66u.

    First, log into your Routers webUI, select “LAN” in the left-hand menu. Then select the “DHCP Server” tab. Scroll midway down the page. Locate “Enable Manual Assignment” and select the “Yes” radio button.

    asus0

     

    Just below the section above, you will see a drop down box that you can use to select your device using the MAC or currently assigned IP. Enter the “Hostname” for the device. Select “Add/Delete“. This will add your device to the list.

     

    asus3

    Scroll down and find your device in the list. Select the icon to the left.  Change the “Name” of the device if you so desire. The only really important information here is the “IP” and the “MAC”. 

    asus4

     

     

    Here you also can change the default icon for the device, or add your own custom icons. Here, I am using a camera icon that I downloaded.

    asus6

     

    Below you can see some of the custom icons and names that I have set to help me keep track of my devices.

    asus-1

     

    • Share on X (Opens in new window) X
    • Share on Facebook (Opens in new window) Facebook
    • Share on LinkedIn (Opens in new window) LinkedIn
    • Share on Reddit (Opens in new window) Reddit

    Like this:

    Like Loading…
  • Asus RT-AC66: Cannot Login Unless Logout Another User First

    Homelab Networking
    03/06/2017

    asus-rt-ac66u

     

    When attempting to login to your router’s webUI, you may have run into the error below.

    cannot Login unless logout another user first.

    This error is usually caused by improperly closing router’s WebUI. This can occur if you are logged in and lose connectivity, or if your browser crashed.

    Fortunately, the fix is simple… Assuming you have SSH enabled.

    First, SSH into your router and run the two commands shown below.

    admin@RT-AC66U:/tmp/home/root# nvram unset login_ip
    admin@RT-AC66U:/tmp/home/root# nvram commit

    See screenshot below

    login-cleanup

    Now, attempt to login via the webUI. You should be able to log in without issue.

    If you do not have SSH or telnet enabled, you can just power cycle your router.

     

     

    • Share on X (Opens in new window) X
    • Share on Facebook (Opens in new window) Facebook
    • Share on LinkedIn (Opens in new window) LinkedIn
    • Share on Reddit (Opens in new window) Reddit

    Like this:

    Like Loading…
  • Home Assistant: Checking configuration.yaml for errors

    Home Automation Misc
    02/27/2017

    alexa-512x512

    See instructions below on how to verify your configuration.yaml.

    Ssh into your Home Assistant host. In my environment, I am running home assistant on a Raspberry Pi 2.

    First I ssh as root. I have manually set the root password and have enabled root logins via /etc/ssh/sshd_config.  I have also added a static DNS entry for my Raspberry Pi 2.

     $ ssh root@ha

    Su to the user, homeassistant.

    root@ha:/var/log# su – homeassistant

    Then run the command below.

    homeassistant@ha:~ $ /srv/homeassistant/bin/hass –script check_config
    Testing configuration at /home/homeassistant/.homeassistant

    If you run into an error, you should see output similar to the example below.

    homeassistant@ha:~ $ /srv/homeassistant/bin/hass –script check_config
    Testing configuration at /home/homeassistant/.homeassistant
    17-02-27 18:20:43 ERROR (MainThread) [homeassistant.bootstrap] Invalid config for [media_player.directv]: required key not provided @ data[‘host’]. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/media_player.directv/
    Failed config
    media_player.directv:
    platform: directv

    In the example above, there is an issue with my directv config. I will need to troubleshoot.

     

    • Share on X (Opens in new window) X
    • Share on Facebook (Opens in new window) Facebook
    • Share on LinkedIn (Opens in new window) LinkedIn
    • Share on Reddit (Opens in new window) Reddit

    Like this:

    Like Loading…
←Previous Page
1 … 12 13 14 15 16 … 67
Next Page→

Twenty Twenty-Five

Designed with WordPress

Loading Comments...
%d