Wordpress-5.2.2-jaのRPM

  • 投稿日:
  • by
  • カテゴリ:

WordpressをRHEL7にインストールしようとしたらEPELに5.1.1までしかなくて、5.2.2-jaのRPMが無いので作った。Dockerにしちゃっても良いんだが、まあダイレクトに入れるならRPMが無いと困るはずで、さて、皆さんどうしてるんだろ。SPECのちょっとした修正と、5.2.2に合わせたパッチの再作成程度のワークで対応出来るんだが...。RHEL / CentOSでソースから入れるの、感心しないぞ?w

wordpress-5.2.2-1.el7.noarch.rpm

wordpress-5.2.2-1.el7.src.rpm

$ md5 wordpress-5.2.2-1.el7.*
MD5 (wordpress-5.2.2-1.el7.noarch.rpm) = 3bfd51d3b332e77fac5c44c059e78420
MD5 (wordpress-5.2.2-1.el7.src.rpm) = 1f005b55708f6fdbb6af6cbd4dc6b3c8
$ shasum wordpress-5.2.2-1.el7.*
a84930e682ba02b9b1cb4abe84a4bf396f889e11  wordpress-5.2.2-1.el7.noarch.rpm
380903845d1e1aa4663a08efb862ba753a6b2850  wordpress-5.2.2-1.el7.src.rpm

計測してなかったり、開通日にブログ書いてなかったりなんだけど、大体こんな感じで回線アップグレードしてきたみたい。2001年の1.25Mbpsと比較しても現在は6,500倍になってる。ISDNになる前は9,600、14,400、28,800、56,000bpsあたりを乗り継いだ気がするので、数十万倍になってるwww

2018.05 auひかりホーム10Gに移行、8Gbps
2013.08.13 auひかりに移行、900Mbps
2005.12.26 Bフレッツハイパーファミリーに移行、速度不明
2004.01.29 Bフレッツニューファミリーに移行、44Mbps
2002.07.12 Bフレッツに移行、9.3Mbps
2002.03.25 ADSL8Mbpsに移行、5.7Mbps
2001.06.21 ADSLに移行、1.25Mbps
? ケーブルネットに移行、速度不明
2000.08.08 フレッツISDNに移行、速度不明

マイクラコンテナを変更する方法

  • 投稿日:
  • by
  • カテゴリ:

マイクラ自動化02「湧き潰し自動化でプログラミング& Azure 入門!コンテナ、デプロイされるってよ」#くらでべ #マイクラ #Minecraftで使っているコンテナは、rioriost/minecraft-serverですが、これをカスタマイズする手順を書いておきます。macOSを想定していますが、各ドキュメントのリンクを読めば、他のプラットフォームでも以下の手順はほぼ同じです。

Azureサブスクリプション

最初に。Azureにデプロイすることが前提なので、Azureのサブスクリプションが必要です。無料評価版でももちろん動作するので、サブスクリプションが無い場合、ここからアカウントを作成しておいてください。

Azure CLIのインストール

また、Azure CLIも必要になるので、もしインストールしていなければ以下の手順でインストールします。macOSではbrewをインストールして、brewでAzure CLIを入れるのが楽なのでオススメです。ターミナルを開いて、以下のコマンドを実行します。

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brewのインストールが完了したら、続いてAzure CLIをインストールします。
brew install azure-cli

Dockerのインストール

さらに、Dockerをインストールします。Docker Desktop for MacからDocker.dmgをダウンロードして、通常のアプリと同じようにインストールします。Dockerのログインアカウントを作成したのち、ターミナルを開いてdocker loginコマンドを実行します。

$ docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username: 
Password: 
Login Succeeded

gitのインストール

次に、gitをインストールします。Azure CLI同様、brewでインストールします。

brew install git
これでgitが使えるようになりました。Dockerfileを含むレポジトリをcloneします。cloneするとdockerfilesというディレクトリが作成されるので、git cloneを実行する前に適当なディレクトリにcdしておくことをオススメします。
$ cd Documents
$ git clone https://github.com/rioriost/dockerfiles

server.propertiesの編集

dockerfiles/minecraft-server/にserver.propertiesというファイルがあります。これはマイクラサーバの設定をするためのファイルで、このファイルを適当なエディタで開き編集します。各パラメータについてはMinecraft Wikiを見るのが良いでしょう。

コンテナのビルド

これで設定を変更出来たので、変更した設定を反映したマイクラコンテナを作成します。ターミナルを開いてビルドします。

$ cd Documents/dockerfiles/minecraft-server/
$ docker build -t your_account/minecraft-server .
your_accountの部分は先に作成したDockerのアカウント、minecraft-serverの部分は好きな文字列で構いませんが、分かりやすいものにしておきましょう。コマンドの最後にある「.」(ピリオド)は必須です。ビルドが終わったらDocker HubにPushしましょう。
$ docker push your_account/minecraft-server

コンテナの公開設定

さらにDocker Hubにログインします。先ほどPushしたコンテナイメージが表示されるので、それをクリックします。20190628.png [Settings]をクリックすると、Visibility Settingsという項目があるので、[make public]ボタンをクリックし公開します。公開しないと、ACI (Azure Container Instances)からPullする際に認証が必要となり、少々面倒です。

デプロイスクリプトの修正

もう一つだけ作業が必要です。マイクラコンテナをデプロイするスクリプトをダウンロードして、ここまでの手順で作成したコンテナイメージを使うように修正します。

$ git clone https://github.com/rioriost/deploy_minecraft
deploy_minecraftというディレクトリの中に、create_minecraft.shというファイルがあります。これをエディタで編集します。編集箇所は7箇所。
まずは定数としてある4〜9行です。Azureのアカウント名は変えなくても動きますが、気持ち悪いと思うので変更してください(笑)。デフォルトではAzure東日本(japaneast)に展開しますが、お住まいの地域に併せて西日本(japanwest)や他のリージョンを指定してください。絶対に変更する必要があるのは8行目のRCON_PASSWORDです。出来るだけ強度の高いパスワードを選んでください。
  4 readonly AZURE_ACCT="rifujita"
  5 readonly ACI_RES_LOC="japaneast"
  6 readonly ACI_RES_GRP="${AZURE_ACCT}democraft"
  7 readonly ACI_STR_SH_NAME="acishare"
  8 readonly RCON_PASSWORD="testing"
  9 readonly ACI_CNT_NAME="${ACI_RES_GRP}-container"
もう1箇所はデプロイするコンテナイメージです。49行目のrioriost/minecraft-serverを、先にPushしたyour_account/minecraft-serverに置き換えます。
 49 res=$(az container create --image rioriost/minecraft-server -g $ACI_RES_GRP -n $ACI_CNT_NAME \

これで設定を変更したコンテナイメージを利用する準備が出来ました。

$ bash create_minecraft.sh
を実行すればおそらく2分ぐらいでコンテナが起動します。

What is the best practice to build a container for RHEL8

  • 投稿日:
  • by
  • カテゴリ:

While reading RH's article for container management, I needed to think about $subject.

As you can see the article, we have two options to start a container on RHEL8. They are (2) and (4) in the table below.

 Who starts a container
dockerdsystemd + Podman
init method
in container
init(1)(2)
systemd(3)(4)

On the other hands, most of Linux distributions adopt dockerd, we need to consider (1) and (3) in the table above.

If you run your containers only on RHEL8, the problem is so simple. You can choose (2) or (4) according to your favorite. The (2) requires you to write a *.service file under /etc/systemd/ for systemd, and the (4) also makes you annoyed with an illegible Dockerfile including the contents of *.service even though using 'COPY' command in it. Also, the (4) might lead an increase of the size of a container due to systemd installed into a container.

The interoperability between non-RHEL distributions and RHEL is another essential point that you must think over. Of course, all we want to use same Dockerfile except 'FROM' line among all environments where containers are running such as RHEL, AKS (Azure k8s Services), ACI (Azure Container Services), and so on. The portability is the thing we can't ignore.

I arrived at a conclusion. The (1) for non-RHEL distributions and the (2) for RHEL are the best.

Building a RHEL8-based container image on Azure

  • 投稿日:
  • by
  • カテゴリ:

Azure IaaSのRHELは、Red Hat Networkのサーバではなく、AzureのDC内(と言ってもCDNやTraffic Managerを利用している)にある、RHUI(Red Hat Update Infrastructure)を見に行く。

$ sudo head -5 /etc/yum.repos.d/rh-cloud.repo 
[rhui-rhel-8-for-x86_64-baseos-rhui-rpms]
name=Red Hat Enterprise Linux 8 for x86_64 - BaseOS from RHUI (RPMs)
baseurl=https://rhui-1.microsoft.com/pulp/repos/content/dist/rhel8/rhui/$releasever/x86_64/baseos/os
        https://rhui-2.microsoft.com/pulp/repos/content/dist/rhel8/rhui/$releasever/x86_64/baseos/os
        https://rhui-3.microsoft.com/pulp/repos/content/dist/rhel8/rhui/$releasever/x86_64/baseos/os

この環境で下記のようなDockerfileをビルドしようとすると、UBIイメージなので"Red Hat Universal Base Image 8 (RPMs) - BaseOS"などのレポを見に行って、dhcp-serverなるパッケージは見つからない、と文句を言われる。そう、見に行って欲しいのは、"Red Hat Enterprise Linux 8 for x86_64 - BaseOS from RHUI (RPMs)"である。

FROM registry.access.redhat.com/ubi8
USER root

# Update image
RUN dnf update --disableplugin=subscription-manager -y
RUN dnf -y --disableplugin=subscription-manager install dhcp-server && rm -rf /var/cache/dnf

# Add default Web page and expose port
EXPOSE 67

# Start the service
ENTRYPOINT ["/usr/sbin/dhcpd"]

じゃあ、ホストの/etc/yum.repos.d/と/etc/pki/をマウントしちゃえば良いだろうとやってみると、RHUIは見に行こうとするが通信出来てない。あれ?pki見せるのにTLSで通信出来てない?と思ったら、SELinuxが

type=AVC msg=audit(1561380527.507:2249): avc:  denied  { read } for  pid=72061 comm="yum" name="content.crt" dev="dm-5" ino=858 scontext=system_u:system_r:container_t:s0:c507,c992 tcontext=system_u:object_r:cert_t:s0 tclass=file permissive=0

ですよねぇぇw

ひとまずビルドする間だけPermissiveにして何とかする。

# setenforce 0
# docker build -t rioriost/dhcp-server -v /etc/yum.repos.d/:/etc/yum.repos.d/ -v /etc/pki/:/etc/pki/ .
# setenforce 1

Building a RHEL8-based container image on Docker on macOS

  • 投稿日:
  • by
  • カテゴリ:

最初のハマりどころ。過去にもハマって思い出せなかったのでメモ。
まず、Registry Service Accountsでアカウントを作成する必要がある。ここでアカウントを作成すると、docker loginなどのコマンドラインが提示されるので、これを利用すればregistry.access.redhat.comのイメージをpullすることが可能になる。

で、これは今日ハマってたところなんだけど、UBI (Universal Base Image)を使ってdhcp-serverパッケージ(RHEL7ではdhcp、RHEL8ではdhcp-serverがサーバとなる)をインストールしようとしたところ出来ない。でも、httpdやnginxはインストール出来る。結論としては、UBIベースでインストール出来るのはBaseOSに含まれる一部のパッケージだけであるということがまず一つ。そしてSubscription ManagerがRHUI (Red Hat Update Infrastructure) を利用していないこと。つまりクラウドのIaaS上のRHEL8ではないこと。Red HatのCertified Cloud ProiderはRHUIの設定が義務づけられているので、それらの環境では下記手順では動かない可能性が高い。

Dockerfileは以下のようになる。smでregisterする必要があるので、ここではDockerfileに書いてるが、まあENVで渡すのがセキュリティ的には良かろう。

FROM registry.access.redhat.com/ubi8/ubi
USER root

RUN subscription-manager register --auto-attach --username=rh-customer-portal-accout --password=rh-customer-portal-password

# Update image
RUN yum update --disableplugin=subscription-manager -y
RUN yum -y --disableplugin=subscription-manager install dhcp-server && rm -rf /var/cache/yum
RUN subscription-manager unregister

# Add default Web page and expose port
EXPOSE 67

# Start the service
ENTRYPOINT ["/usr/sbin/dhcpd"]

iperf3 on Azure

  • 投稿日:
  • by
  • カテゴリ:

Conducted the performance tests using iperf3 with loopback device. So, it measured mainly CPU, not networking performance. Just in case, the vm size I used was F4s_v2 and it supports Accelerated Networking.

20190618_iperf3_01.png

SLES 15

$ az group create -l japaneast -g riodemosles15
$ az vm create --image SUSE:SLES:15:2019.03.06 --size Standard_F4s_v2 -g riodemosles15 -n riodemosles15
riodemosles15:~ # uname -r
4.12.14-5.19-azure

riodemosles15:~ # iperf3 -c 127.0.0.1 -u -l 16 -b 20M
Connecting to host 127.0.0.1, port 5201
[  5] local 127.0.0.1 port 33153 connected to 127.0.0.1 port 5201
[ ID] Interval           Transfer     Bitrate         Total Datagrams
[  5]   0.00-1.00   sec  2.38 MBytes  20.0 Mbits/sec  156102  
[  5]   1.00-2.00   sec  2.39 MBytes  20.0 Mbits/sec  156372  
[  5]   2.00-3.00   sec  2.38 MBytes  20.0 Mbits/sec  156257  
[  5]   3.00-4.00   sec  2.38 MBytes  20.0 Mbits/sec  156219  
[  5]   4.00-5.00   sec  2.38 MBytes  20.0 Mbits/sec  156292  
[  5]   5.00-6.00   sec  2.38 MBytes  20.0 Mbits/sec  156218  
[  5]   6.00-7.00   sec  2.38 MBytes  20.0 Mbits/sec  156176  
[  5]   7.00-8.00   sec  2.38 MBytes  20.0 Mbits/sec  156292  
[  5]   8.00-9.00   sec  2.38 MBytes  20.0 Mbits/sec  156294  
[  5]   9.00-10.00  sec  2.38 MBytes  20.0 Mbits/sec  155968  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
[  5]   0.00-10.00  sec  23.8 MBytes  20.0 Mbits/sec  0.000 ms  0/1562190 (0%)  sender
[  5]   0.00-10.04  sec  23.8 MBytes  19.9 Mbits/sec  0.005 ms  879/1562190 (0.056%)  receiver

iperf Done.

riodemosles15:~ # iperf3 -c 127.0.0.1 -u -l 16 -b 40M
Connecting to host 127.0.0.1, port 5201
[  5] local 127.0.0.1 port 42813 connected to 127.0.0.1 port 5201
[ ID] Interval           Transfer     Bitrate         Total Datagrams
[  5]   0.00-1.00   sec  3.56 MBytes  29.9 Mbits/sec  233496  
[  5]   1.00-2.00   sec  3.79 MBytes  31.8 Mbits/sec  248485  
[  5]   2.00-3.00   sec  3.64 MBytes  30.6 Mbits/sec  238863  
[  5]   3.00-4.00   sec  4.31 MBytes  36.2 Mbits/sec  282596  
[  5]   4.00-5.00   sec  4.21 MBytes  35.3 Mbits/sec  275996  
[  5]   5.00-6.00   sec  4.41 MBytes  37.0 Mbits/sec  289027  
[  5]   6.00-7.00   sec  4.38 MBytes  36.7 Mbits/sec  287044  
[  5]   7.00-8.00   sec  4.39 MBytes  36.8 Mbits/sec  287460  
[  5]   8.00-9.00   sec  4.42 MBytes  37.1 Mbits/sec  289476  
[  5]   9.00-10.00  sec  4.39 MBytes  36.8 Mbits/sec  287781  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
[  5]   0.00-10.00  sec  41.5 MBytes  34.8 Mbits/sec  0.000 ms  0/2720224 (0%)  sender
[  5]   0.00-10.04  sec  41.3 MBytes  34.5 Mbits/sec  0.003 ms  16276/2720224 (0.6%)  receiver

iperf Done.

RHEL8 (added on 8th. May 2019)

$ az group create -l japaneast -g riodemorhel8
$ az vm create --image RedHat:RHEL:8:8.0.2019050711 --size Standard_F4s_v2 -g riodemorhel8 -n riodemorhel8
[root@riodemorhel8 ~]# uname -r
4.18.0-80.el8.x86_64

[rifujita@riodemorhel8 ~]$ iperf3 -c 127.0.0.1 -u -l 16 -b 20M
Connecting to host 127.0.0.1, port 5201
[  5] local 127.0.0.1 port 43868 connected to 127.0.0.1 port 5201
[ ID] Interval           Transfer     Bitrate         Total Datagrams
[  5]   0.00-1.00   sec  2.38 MBytes  20.0 Mbits/sec  156135  
[  5]   1.00-2.00   sec  2.39 MBytes  20.0 Mbits/sec  156359  
[  5]   2.00-3.00   sec  2.38 MBytes  20.0 Mbits/sec  156248  
[  5]   3.00-4.00   sec  2.38 MBytes  20.0 Mbits/sec  156233  
[  5]   4.00-5.00   sec  2.38 MBytes  20.0 Mbits/sec  156174  
[  5]   5.00-6.00   sec  2.38 MBytes  20.0 Mbits/sec  156300  
[  5]   6.00-7.00   sec  2.38 MBytes  20.0 Mbits/sec  156208  
[  5]   7.00-8.00   sec  2.36 MBytes  19.8 Mbits/sec  154829  
[  5]   8.00-9.00   sec  2.41 MBytes  20.2 Mbits/sec  157740  
[  5]   9.00-10.00  sec  2.38 MBytes  20.0 Mbits/sec  156252  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
[  5]   0.00-10.00  sec  23.8 MBytes  20.0 Mbits/sec  0.000 ms  0/1562478 (0%)  sender
[  5]   0.00-10.04  sec  23.8 MBytes  19.9 Mbits/sec  0.004 ms  1787/1562478 (0.11%)  receiver

iperf Done.

[rifujita@riodemorhel8 ~]$ iperf3 -c 127.0.0.1 -u -l 16 -b 40M
Connecting to host 127.0.0.1, port 5201
[  5] local 127.0.0.1 port 43206 connected to 127.0.0.1 port 5201
[ ID] Interval           Transfer     Bitrate         Total Datagrams
[  5]   0.00-1.00   sec  2.56 MBytes  21.4 Mbits/sec  167555  
[  5]   1.00-2.00   sec  2.75 MBytes  23.1 Mbits/sec  180423  
[  5]   2.00-3.00   sec  2.49 MBytes  20.9 Mbits/sec  163129  
[  5]   3.00-4.00   sec  2.41 MBytes  20.2 Mbits/sec  157965  
[  5]   4.00-5.00   sec  2.58 MBytes  21.6 Mbits/sec  168961  
[  5]   5.00-6.00   sec  2.47 MBytes  20.7 Mbits/sec  161740  
[  5]   6.00-7.00   sec  2.75 MBytes  23.0 Mbits/sec  180022  
[  5]   7.00-8.00   sec  2.38 MBytes  20.0 Mbits/sec  156232  
[  5]   8.00-9.00   sec  2.67 MBytes  22.4 Mbits/sec  174861  
[  5]   9.00-10.00  sec  2.44 MBytes  20.5 Mbits/sec  159921  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
[  5]   0.00-10.00  sec  25.5 MBytes  21.4 Mbits/sec  0.000 ms  0/1670809 (0%)  sender
[  5]   0.00-10.04  sec  25.5 MBytes  21.3 Mbits/sec  0.006 ms  2257/1670809 (0.14%)  receiver

iperf Done.

RHEL8 Public Beta

$ az group create -l japaneast -g riodemorhel8
$ az vm create --image RedHat:RHEL:8-BETA:8.0.2018112803 --size Standard_F4s_v2 -g riodemorhel8 -n riodemorhel8
[root@riodemorhel8 ~]# uname -r
4.18.0-32.el8.x86_64

[root@riodemorhel8 ~]# iperf3 -c 127.0.0.1 -u -l 16 -b 20M
Connecting to host 127.0.0.1, port 5201
[  5] local 127.0.0.1 port 42734 connected to 127.0.0.1 port 5201
[ ID] Interval           Transfer     Bitrate         Total Datagrams
[  5]   0.00-1.00   sec  2.38 MBytes  20.0 Mbits/sec  156191  
[  5]   1.00-2.00   sec  2.38 MBytes  20.0 Mbits/sec  156180  
[  5]   2.00-3.00   sec  2.39 MBytes  20.0 Mbits/sec  156325  
[  5]   3.00-4.00   sec  2.38 MBytes  20.0 Mbits/sec  156235  
[  5]   4.00-5.00   sec  2.38 MBytes  20.0 Mbits/sec  156270  
[  5]   5.00-6.00   sec  2.38 MBytes  20.0 Mbits/sec  156278  
[  5]   6.00-7.00   sec  2.38 MBytes  20.0 Mbits/sec  156265  
[  5]   7.00-8.00   sec  2.38 MBytes  20.0 Mbits/sec  156254  
[  5]   8.00-9.00   sec  2.38 MBytes  20.0 Mbits/sec  156185  
[  5]   9.00-10.00  sec  2.38 MBytes  20.0 Mbits/sec  156220  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
[  5]   0.00-10.00  sec  23.8 MBytes  20.0 Mbits/sec  0.000 ms  0/1562403 (0%)  sender
[  5]   0.00-10.04  sec  23.8 MBytes  19.9 Mbits/sec  0.004 ms  135/1562403 (0.0086%)  receiver

iperf Done.

[root@riodemorhel8 ~]# iperf3 -c 127.0.0.1 -u -l 16 -b 40M
Connecting to host 127.0.0.1, port 5201
[  5] local 127.0.0.1 port 41600 connected to 127.0.0.1 port 5201
[ ID] Interval           Transfer     Bitrate         Total Datagrams
[  5]   0.00-1.00   sec  2.60 MBytes  21.8 Mbits/sec  170275  
[  5]   1.00-2.00   sec  2.89 MBytes  24.2 Mbits/sec  189270  
[  5]   2.00-3.00   sec  2.85 MBytes  23.9 Mbits/sec  186699  
[  5]   3.00-4.00   sec  2.85 MBytes  23.9 Mbits/sec  186567  
[  5]   4.00-5.00   sec  2.77 MBytes  23.3 Mbits/sec  181727  
[  5]   5.00-6.00   sec  2.88 MBytes  24.2 Mbits/sec  188998  
[  5]   6.00-7.00   sec  2.93 MBytes  24.6 Mbits/sec  192159  
[  5]   7.00-8.00   sec  3.05 MBytes  25.6 Mbits/sec  200080  
[  5]   8.00-9.00   sec  3.00 MBytes  25.2 Mbits/sec  196571  
[  5]   9.00-10.00  sec  3.01 MBytes  25.2 Mbits/sec  197229  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
[  5]   0.00-10.00  sec  28.8 MBytes  24.2 Mbits/sec  0.000 ms  0/1889575 (0%)  sender
[  5]   0.00-10.04  sec  28.8 MBytes  24.1 Mbits/sec  0.005 ms  876/1889575 (0.046%)  receiver

iperf Done.

RHEL 7.6 (LVM)

$ az group create -l japaneast -g riodemorhel76lvm
$ az vm create --image RedHat:RHEL:7-LVM:7.6.2018103108 --size Standard_F4s_v2 -g riodemorhel76lvm -n riodemorhel76lvm
[root@riodemorhel76lvm ~]# uname -r
3.10.0-957.el7.x86_64

[root@riodemorhel76lvm ~]# iperf3 -c 127.0.0.1 -u -l 16 -b 20M
Connecting to host 127.0.0.1, port 5201
[  4] local 127.0.0.1 port 48312 connected to 127.0.0.1 port 5201
[ ID] Interval           Transfer     Bandwidth       Total Datagrams
[  4]   0.00-1.00   sec  1.55 MBytes  13.0 Mbits/sec  101555  
[  4]   1.00-2.00   sec  1.82 MBytes  15.3 Mbits/sec  119514  
[  4]   2.00-3.00   sec  1.22 MBytes  10.2 Mbits/sec  79943  
[  4]   3.00-4.00   sec  1.55 MBytes  13.0 Mbits/sec  101508  
[  4]   4.00-5.00   sec  1.66 MBytes  14.0 Mbits/sec  108998  
[  4]   5.00-6.00   sec  1.74 MBytes  14.6 Mbits/sec  114026  
[  4]   6.00-7.00   sec  1.65 MBytes  13.9 Mbits/sec  108304  
[  4]   7.00-8.00   sec  1.49 MBytes  12.5 Mbits/sec  97685  
[  4]   8.00-9.00   sec  1.69 MBytes  14.2 Mbits/sec  110898  
[  4]   9.00-10.00  sec  1.68 MBytes  14.1 Mbits/sec  109779  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Jitter    Lost/Total Datagrams
[  4]   0.00-10.00  sec  16.1 MBytes  13.5 Mbits/sec  0.009 ms  779/1052210 (0.074%)  
[  4] Sent 1052210 datagrams

iperf Done.
[root@riodemorhel76lvm ~]# iperf3 -c 127.0.0.1 -u -l 16 -b 40M
Connecting to host 127.0.0.1, port 5201
[  4] local 127.0.0.1 port 35561 connected to 127.0.0.1 port 5201
[ ID] Interval           Transfer     Bandwidth       Total Datagrams
[  4]   0.00-1.00   sec  1.71 MBytes  14.4 Mbits/sec  112327  
[  4]   1.00-2.00   sec  1.76 MBytes  14.8 Mbits/sec  115238  
[  4]   2.00-3.00   sec  1.71 MBytes  14.3 Mbits/sec  111778  
[  4]   3.00-4.00   sec  1.65 MBytes  13.9 Mbits/sec  108412  
[  4]   4.00-5.00   sec  1.60 MBytes  13.4 Mbits/sec  104963  
[  4]   5.00-6.00   sec  1.69 MBytes  14.2 Mbits/sec  110633  
[  4]   6.00-7.00   sec  1.76 MBytes  14.7 Mbits/sec  115060  
[  4]   7.00-8.00   sec  1.71 MBytes  14.3 Mbits/sec  111936  
[  4]   8.00-9.00   sec  1.68 MBytes  14.1 Mbits/sec  110358  
[  4]   9.00-10.00  sec  1.72 MBytes  14.5 Mbits/sec  112933  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Jitter    Lost/Total Datagrams
[  4]   0.00-10.00  sec  17.0 MBytes  14.3 Mbits/sec  0.007 ms  0/1113638 (0%)  
[  4] Sent 1113638 datagrams

iperf Done.

RHEL 7.5 (LVM)

$ az group create -l japaneast -g riodemorhel75lvm
$ az vm create --image RedHat:RHEL:7-LVM:7.5.2018081518 --size Standard_F4s_v2 -g riodemorhel75lvm -n riodemorhel75lvm
[root@riodemorhel75lvm ~]# uname -r
3.10.0-862.11.6.el7.x86_64

[root@riodemorhel75lvm ~]# iperf3 -c 127.0.0.1 -u -l 16 -b 20M
[  4] local 127.0.0.1 port 36324 connected to 127.0.0.1 port 5201
[ ID] Interval           Transfer     Bandwidth       Total Datagrams
[  4]   0.00-1.00   sec  1.22 MBytes  10.2 Mbits/sec  80070  
[  4]   1.00-2.00   sec  1.01 MBytes  8.45 Mbits/sec  66009  
[  4]   2.00-3.00   sec  1.43 MBytes  12.0 Mbits/sec  94000  
[  4]   3.00-4.00   sec  1.13 MBytes  9.45 Mbits/sec  73805  
[  4]   4.00-5.00   sec  1.26 MBytes  10.6 Mbits/sec  82737  
[  4]   5.00-6.00   sec  1.32 MBytes  11.1 Mbits/sec  86363  
[  4]   6.00-7.00   sec  1.37 MBytes  11.5 Mbits/sec  89794  
[  4]   7.00-8.00   sec  1.27 MBytes  10.7 Mbits/sec  83533  
[  4]   8.00-9.00   sec  1.31 MBytes  11.0 Mbits/sec  86179  
[  4]   9.00-10.00  sec  1.28 MBytes  10.7 Mbits/sec  83954  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Jitter    Lost/Total Datagrams
[  4]   0.00-10.00  sec  12.6 MBytes  10.6 Mbits/sec  0.020 ms  1722/826444 (0.21%)  
[  4] Sent 826444 datagrams

iperf Done.
[root@riodemorhel75lvm ~]# iperf3 -c 127.0.0.1 -u -l 16 -b 40M
Connecting to host 127.0.0.1, port 5201
[  4] local 127.0.0.1 port 40151 connected to 127.0.0.1 port 5201
[ ID] Interval           Transfer     Bandwidth       Total Datagrams
[  4]   0.00-1.00   sec  1.27 MBytes  10.7 Mbits/sec  83493  
[  4]   1.00-2.00   sec  1.16 MBytes  9.75 Mbits/sec  76193  
[  4]   2.00-3.00   sec  1.12 MBytes  9.37 Mbits/sec  73209  
[  4]   3.00-4.00   sec  1.22 MBytes  10.2 Mbits/sec  79935  
[  4]   4.00-5.00   sec  1.14 MBytes  9.53 Mbits/sec  74422  
[  4]   5.00-6.00   sec  1.26 MBytes  10.6 Mbits/sec  82903  
[  4]   6.00-7.00   sec  1.17 MBytes  9.80 Mbits/sec  76561  
[  4]   7.00-8.00   sec  1.15 MBytes  9.66 Mbits/sec  75475  
[  4]   8.00-9.00   sec  1.23 MBytes  10.3 Mbits/sec  80828  
[  4]   9.00-10.00  sec  1.21 MBytes  10.2 Mbits/sec  79581  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Jitter    Lost/Total Datagrams
[  4]   0.00-10.00  sec  11.9 MBytes  10.0 Mbits/sec  0.020 ms  1429/782600 (0.18%)  
[  4] Sent 782600 datagrams

iperf Done.

RHEL 7.4 (LVM)

$ az group create -l japaneast -g riodemorhel74
$ az vm create --image RedHat:RHEL:7-LVM:7.4.2018010506 --size Standard_F4s_v2 -g riodemorhel74 -n riodemorhel74
[root@riodemorhel74 ~]# uname -r
3.10.0-693.11.6.el7.x86_64

[root@riodemorhel74 ~]# iperf3 -c 127.0.0.1 -u -l 16 -b 20M
Connecting to host 127.0.0.1, port 5201
[  4] local 127.0.0.1 port 57391 connected to 127.0.0.1 port 5201
[ ID] Interval           Transfer     Bandwidth       Total Datagrams
[  4]   0.00-1.00   sec  1.44 MBytes  12.1 Mbits/sec  94184  
[  4]   1.00-2.00   sec  1.02 MBytes  8.53 Mbits/sec  66675  
[  4]   2.00-3.00   sec  1.62 MBytes  13.6 Mbits/sec  105950  
[  4]   3.00-4.00   sec  1.81 MBytes  15.2 Mbits/sec  118431  
[  4]   4.00-5.00   sec  1.57 MBytes  13.2 Mbits/sec  103119  
[  4]   5.00-6.00   sec  1.83 MBytes  15.4 Mbits/sec  120164  
[  4]   6.00-7.00   sec  1.84 MBytes  15.5 Mbits/sec  120775  
[  4]   7.00-8.00   sec  1.06 MBytes  8.88 Mbits/sec  69381  
[  4]   8.00-9.00   sec  1.35 MBytes  11.4 Mbits/sec  88733  
[  4]   9.00-10.00  sec  1.46 MBytes  12.2 Mbits/sec  95556  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Jitter    Lost/Total Datagrams
[  4]   0.00-10.00  sec  15.0 MBytes  12.6 Mbits/sec  0.023 ms  1413/982968 (0.14%)  
[  4] Sent 982968 datagrams

iperf Done.

[root@riodemorhel74 ~]# iperf3 -c 127.0.0.1 -u -l 16 -b 40M
Connecting to host 127.0.0.1, port 5201
[  4] local 127.0.0.1 port 37048 connected to 127.0.0.1 port 5201
[ ID] Interval           Transfer     Bandwidth       Total Datagrams
[  4]   0.00-1.00   sec  2.16 MBytes  18.1 Mbits/sec  141374  
[  4]   1.00-2.00   sec  2.08 MBytes  17.5 Mbits/sec  136556  
[  4]   2.00-3.00   sec  2.19 MBytes  18.4 Mbits/sec  143399  
[  4]   3.00-4.00   sec  1.07 MBytes  9.01 Mbits/sec  70380  
[  4]   4.00-5.00   sec  1.19 MBytes  10.0 Mbits/sec  78222  
[  4]   5.00-6.00   sec  1.20 MBytes  10.1 Mbits/sec  78693  
[  4]   6.00-7.00   sec  1.06 MBytes  8.87 Mbits/sec  69329  
[  4]   7.00-8.00   sec  1.03 MBytes  8.63 Mbits/sec  67444  
[  4]   8.00-9.00   sec  2.17 MBytes  18.2 Mbits/sec  142328  
[  4]   9.00-10.00  sec  1.02 MBytes  8.59 Mbits/sec  67111  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Jitter    Lost/Total Datagrams
[  4]   0.00-10.00  sec  15.2 MBytes  12.7 Mbits/sec  0.019 ms  3343/994836 (0.34%)  
[  4] Sent 994836 datagrams

iperf Done.

RHEL 6.10

$ az group create -l japaneast -g riodemorhel610
$ az vm create --image RedHat:RHEL:6.10:6.10.2019030722 --size Standard_F4s_v2 -g riodemorhel610 -n riodemorhel610
[root@riodemorhel610 ~]# uname -r
2.6.32-754.11.1.el6.x86_64

[root@riodemorhel610 ~]# iperf3 -c 127.0.0.1 -u -l 16 -b 20M
Connecting to host 127.0.0.1, port 5201
[  4] local 127.0.0.1 port 56024 connected to 127.0.0.1 port 5201
[ ID] Interval           Transfer     Bandwidth       Total Datagrams
[  4]   0.00-1.00   sec  2.22 MBytes  18.6 Mbits/sec  145567  
[  4]   1.00-2.00   sec  2.51 MBytes  21.0 Mbits/sec  164359  
[  4]   2.00-3.00   sec  2.32 MBytes  19.5 Mbits/sec  152151  
[  4]   3.00-4.00   sec  2.42 MBytes  20.3 Mbits/sec  158674  
[  4]   4.00-5.00   sec  2.30 MBytes  19.3 Mbits/sec  151008  
[  4]   5.00-6.00   sec  2.50 MBytes  20.9 Mbits/sec  163557  
[  4]   6.00-7.00   sec  2.38 MBytes  19.9 Mbits/sec  155660  
[  4]   7.00-8.00   sec  2.29 MBytes  19.2 Mbits/sec  150259  
[  4]   8.00-9.00   sec  2.46 MBytes  20.7 Mbits/sec  161528  
[  4]   9.00-10.00  sec  2.33 MBytes  19.6 Mbits/sec  152944  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Jitter    Lost/Total Datagrams
[  4]   0.00-10.00  sec  23.7 MBytes  19.9 Mbits/sec  0.006 ms  133/1555707 (0.0085%)  
[  4] Sent 1555707 datagrams

iperf Done.

[root@riodemorhel610 ~]# iperf3 -c 127.0.0.1 -u -l 16 -b 40M
Connecting to host 127.0.0.1, port 5201
[  4] local 127.0.0.1 port 44254 connected to 127.0.0.1 port 5201
[ ID] Interval           Transfer     Bandwidth       Total Datagrams
[  4]   0.00-1.00   sec  2.50 MBytes  21.0 Mbits/sec  163682  
[  4]   1.00-2.00   sec  2.50 MBytes  21.0 Mbits/sec  163873  
[  4]   2.00-3.00   sec  2.50 MBytes  21.0 Mbits/sec  163810  
[  4]   3.00-4.00   sec  2.51 MBytes  21.1 Mbits/sec  164588  
[  4]   4.00-5.00   sec  2.50 MBytes  21.0 Mbits/sec  163695  
[  4]   5.00-6.00   sec  2.48 MBytes  20.8 Mbits/sec  162286  
[  4]   6.00-7.00   sec  2.51 MBytes  21.1 Mbits/sec  164752  
[  4]   7.00-8.00   sec  2.52 MBytes  21.1 Mbits/sec  165092  
[  4]   8.00-9.00   sec  2.49 MBytes  20.9 Mbits/sec  163403  
[  4]   9.00-10.00  sec  2.52 MBytes  21.1 Mbits/sec  165006  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Jitter    Lost/Total Datagrams
[  4]   0.00-10.00  sec  25.0 MBytes  21.0 Mbits/sec  0.005 ms  1580/1640187 (0.096%)  
[  4] Sent 1640187 datagrams

iperf Done.

CentOS 7.6

$ az group create -l japaneast -g riodemocentos76
$ az vm create --image OpenLogic:CentOS-LVM:7-LVM:7.6.20190130 --size Standard_F4s_v2 -g riodemocentos76 -n riodemocentos76
[rifujita@riodemocentos76 ~]$ uname -r
3.10.0-957.1.3.el7.x86_64

[root@riodemocentos76 ~]# iperf3 -c 127.0.0.1 -u -l 16 -b 20M
Connecting to host 127.0.0.1, port 5201
[  4] local 127.0.0.1 port 53567 connected to 127.0.0.1 port 5201
[ ID] Interval           Transfer     Bandwidth       Total Datagrams
[  4]   0.00-1.00   sec  2.33 MBytes  19.6 Mbits/sec  152816  
[  4]   1.00-2.00   sec  2.37 MBytes  19.9 Mbits/sec  155584  
[  4]   2.00-3.00   sec  2.36 MBytes  19.8 Mbits/sec  154544  
[  4]   3.00-4.00   sec  2.29 MBytes  19.2 Mbits/sec  150064  
[  4]   4.00-5.00   sec  2.38 MBytes  20.0 Mbits/sec  156010  
[  4]   5.00-6.00   sec  2.45 MBytes  20.6 Mbits/sec  160628  
[  4]   6.00-7.00   sec  2.47 MBytes  20.7 Mbits/sec  161820  
[  4]   7.00-8.00   sec  2.14 MBytes  17.9 Mbits/sec  140150  
[  4]   8.00-9.00   sec  2.29 MBytes  19.2 Mbits/sec  150020  
[  4]   9.00-10.00  sec  2.57 MBytes  21.6 Mbits/sec  168399  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Jitter    Lost/Total Datagrams
[  4]   0.00-10.00  sec  23.7 MBytes  19.8 Mbits/sec  0.004 ms  1662/1550035 (0.11%)  
[  4] Sent 1550035 datagrams

iperf Done.

[root@riodemocentos76 ~]# iperf3 -c 127.0.0.1 -u -l 16 -b 40M
Connecting to host 127.0.0.1, port 5201
[  4] local 127.0.0.1 port 33200 connected to 127.0.0.1 port 5201
[ ID] Interval           Transfer     Bandwidth       Total Datagrams
[  4]   0.00-1.00   sec  2.94 MBytes  24.6 Mbits/sec  192402  
[  4]   1.00-2.00   sec  2.82 MBytes  23.7 Mbits/sec  184881  
[  4]   2.00-3.00   sec  2.75 MBytes  23.1 Mbits/sec  180337  
[  4]   3.00-4.00   sec  2.83 MBytes  23.7 Mbits/sec  185399  
[  4]   4.00-5.00   sec  2.31 MBytes  19.4 Mbits/sec  151259  
[  4]   5.00-6.00   sec  2.29 MBytes  19.2 Mbits/sec  150008  
[  4]   6.00-7.00   sec  2.49 MBytes  20.9 Mbits/sec  163258  
[  4]   7.00-8.00   sec  2.87 MBytes  24.1 Mbits/sec  187897  
[  4]   8.00-9.00   sec  2.78 MBytes  23.3 Mbits/sec  182200  
[  4]   9.00-10.00  sec  2.39 MBytes  20.1 Mbits/sec  156643  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Jitter    Lost/Total Datagrams
[  4]   0.00-10.00  sec  26.5 MBytes  22.2 Mbits/sec  0.003 ms  3214/1734284 (0.19%)  
[  4] Sent 1734284 datagrams

iperf Done.

Ubuntu 19

$ az group create -l japaneast -g riodemoubuntu19
$ az vm create --image Canonical:UbuntuServer:19.04-DAILY:19.04.201903280 --size Standard_F4s_v2 -g riodemoubuntu19 -n riodemoubuntu19
root@riodemoubuntu19:~# uname -r
4.18.0-1013-azure

root@riodemoubuntu19:~# iperf3 -c 127.0.0.1 -u -l 16 -b 20M
Connecting to host 127.0.0.1, port 5201
[  5] local 127.0.0.1 port 43824 connected to 127.0.0.1 port 5201
[ ID] Interval           Transfer     Bitrate         Total Datagrams
[  5]   0.00-1.00   sec  2.38 MBytes  20.0 Mbits/sec  156182  
[  5]   1.00-2.00   sec  2.38 MBytes  20.0 Mbits/sec  156285  
[  5]   2.00-3.00   sec  2.38 MBytes  20.0 Mbits/sec  156258  
[  5]   3.00-4.00   sec  2.38 MBytes  20.0 Mbits/sec  156176  
[  5]   4.00-5.00   sec  2.38 MBytes  20.0 Mbits/sec  156276  
[  5]   5.00-6.00   sec  2.38 MBytes  20.0 Mbits/sec  156301  
[  5]   6.00-7.00   sec  2.38 MBytes  20.0 Mbits/sec  156236  
[  5]   7.00-8.00   sec  2.38 MBytes  20.0 Mbits/sec  156263  
[  5]   8.00-9.00   sec  2.38 MBytes  20.0 Mbits/sec  156214  
[  5]   9.00-10.00  sec  2.38 MBytes  20.0 Mbits/sec  156239  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
[  5]   0.00-10.00  sec  23.8 MBytes  20.0 Mbits/sec  0.000 ms  0/1562430 (0%)  sender
[  5]   0.00-10.04  sec  23.8 MBytes  19.9 Mbits/sec  0.003 ms  7/1562430 (0.00045%)  receiver

iperf Done.

root@riodemoubuntu19:~# iperf3 -c 127.0.0.1 -u -l 16 -b 40M
Connecting to host 127.0.0.1, port 5201
[  5] local 127.0.0.1 port 59688 connected to 127.0.0.1 port 5201
[ ID] Interval           Transfer     Bitrate         Total Datagrams
[  5]   0.00-1.00   sec  3.64 MBytes  30.5 Mbits/sec  238463  
[  5]   1.00-2.00   sec  4.01 MBytes  33.6 Mbits/sec  262493  
[  5]   2.00-3.00   sec  4.18 MBytes  35.1 Mbits/sec  274124  
[  5]   3.00-4.00   sec  4.29 MBytes  36.0 Mbits/sec  281249  
[  5]   4.00-5.00   sec  4.41 MBytes  37.0 Mbits/sec  288870  
[  5]   5.00-6.00   sec  4.34 MBytes  36.4 Mbits/sec  284273  
[  5]   6.00-7.00   sec  4.27 MBytes  35.9 Mbits/sec  280135  
[  5]   7.00-8.00   sec  4.18 MBytes  35.1 Mbits/sec  274185  
[  5]   8.00-9.00   sec  4.32 MBytes  36.3 Mbits/sec  283236  
[  5]   9.00-10.00  sec  4.01 MBytes  33.7 Mbits/sec  262902  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
[  5]   0.00-10.00  sec  41.7 MBytes  34.9 Mbits/sec  0.000 ms  0/2729930 (0%)  sender
[  5]   0.00-10.04  sec  41.6 MBytes  34.7 Mbits/sec  0.004 ms  3744/2729930 (0.14%)  receiver

iperf Done.

Ubuntu 18

$ az group create -l japaneast -g riodemoubuntu18
$ az vm create --image Canonical:UbuntuServer:18.10-DAILY:18.10.201903280 --size Standard_F4s_v2 -g riodemoubuntu18 -n riodemoubuntu18
rifujita@riodemoubuntu18:~$ uname -r
4.18.0-1013-azure

rifujita@riodemoubuntu18:~$ iperf3 -c 127.0.0.1 -u -l 16 -b 20M
Connecting to host 127.0.0.1, port 5201
[  5] local 127.0.0.1 port 54071 connected to 127.0.0.1 port 5201
[ ID] Interval           Transfer     Bitrate         Total Datagrams
[  5]   0.00-1.00   sec  2.38 MBytes  20.0 Mbits/sec  156196  
[  5]   1.00-2.00   sec  2.38 MBytes  20.0 Mbits/sec  156192  
[  5]   2.00-3.00   sec  2.38 MBytes  20.0 Mbits/sec  156237  
[  5]   3.00-4.00   sec  2.38 MBytes  20.0 Mbits/sec  156265  
[  5]   4.00-5.00   sec  2.39 MBytes  20.0 Mbits/sec  156355  
[  5]   5.00-6.00   sec  2.38 MBytes  20.0 Mbits/sec  156252  
[  5]   6.00-7.00   sec  2.38 MBytes  20.0 Mbits/sec  156244  
[  5]   7.00-8.00   sec  2.38 MBytes  20.0 Mbits/sec  156247  
[  5]   8.00-9.00   sec  2.38 MBytes  20.0 Mbits/sec  156214  
[  5]   9.00-10.00  sec  2.38 MBytes  20.0 Mbits/sec  156247  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
[  5]   0.00-10.00  sec  23.8 MBytes  20.0 Mbits/sec  0.000 ms  0/1562449 (0%)  sender
[  5]   0.00-10.04  sec  23.8 MBytes  19.9 Mbits/sec  0.002 ms  126/1562449 (0.0081%)  receiver

iperf Done.

rifujita@riodemoubuntu18:~$ iperf3 -c 127.0.0.1 -u -l 16 -b 40M
Connecting to host 127.0.0.1, port 5201
[  5] local 127.0.0.1 port 38469 connected to 127.0.0.1 port 5201
[ ID] Interval           Transfer     Bitrate         Total Datagrams
[  5]   0.00-1.00   sec  3.60 MBytes  30.2 Mbits/sec  236089  
[  5]   1.00-2.00   sec  4.19 MBytes  35.2 Mbits/sec  274683  
[  5]   2.00-3.00   sec  3.99 MBytes  33.4 Mbits/sec  261291  
[  5]   3.00-4.00   sec  4.63 MBytes  38.8 Mbits/sec  303142  
[  5]   4.00-5.00   sec  4.06 MBytes  34.1 Mbits/sec  266256  
[  5]   5.00-6.00   sec  4.64 MBytes  38.9 Mbits/sec  303999  
[  5]   6.00-7.00   sec  4.64 MBytes  39.0 Mbits/sec  304359  
[  5]   7.00-8.00   sec  4.65 MBytes  39.0 Mbits/sec  304776  
[  5]   8.00-9.00   sec  4.54 MBytes  38.1 Mbits/sec  297268  
[  5]   9.00-10.00  sec  4.63 MBytes  38.8 Mbits/sec  303290  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
[  5]   0.00-10.00  sec  43.6 MBytes  36.5 Mbits/sec  0.000 ms  0/2855153 (0%)  sender
[  5]   0.00-10.05  sec  43.6 MBytes  36.4 Mbits/sec  0.003 ms  0/2855153 (0%)  receiver

iperf Done.

Ubuntu 16

$ az group create -l japaneast -g riodemoubuntu16
$ az vm create --image Canonical:UbuntuServer:16.04-DAILY-LTS:16.04.201903250 --size Standard_F4s_v2 -g riodemoubuntu16 -n riodemoubuntu16
root@riodemoubuntu16:~# uname -r
4.15.0-1040-azure

root@riodemoubuntu16:~# iperf3 -c 127.0.0.1 -u -l 16 -b 20M
Connecting to host 127.0.0.1, port 5201
[  4] local 127.0.0.1 port 46148 connected to 127.0.0.1 port 5201
[ ID] Interval           Transfer     Bandwidth       Total Datagrams
[  4]   0.00-1.00   sec  2.29 MBytes  19.2 Mbits/sec  149959  
[  4]   1.00-2.00   sec  2.46 MBytes  20.7 Mbits/sec  161478  
[  4]   2.00-3.00   sec  2.38 MBytes  19.9 Mbits/sec  155833  
[  4]   3.00-4.00   sec  2.35 MBytes  19.8 Mbits/sec  154324  
[  4]   4.00-5.00   sec  2.23 MBytes  18.7 Mbits/sec  146002  
[  4]   5.00-6.00   sec  2.54 MBytes  21.3 Mbits/sec  166676  
[  4]   6.00-7.00   sec  2.36 MBytes  19.8 Mbits/sec  154793  
[  4]   7.00-8.00   sec  2.37 MBytes  19.9 Mbits/sec  155372  
[  4]   8.00-9.00   sec  2.38 MBytes  20.0 Mbits/sec  156102  
[  4]   9.00-10.00  sec  2.39 MBytes  20.0 Mbits/sec  156639  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Jitter    Lost/Total Datagrams
[  4]   0.00-10.00  sec  23.8 MBytes  19.9 Mbits/sec  0.002 ms  12115/1557178 (0.78%)  
[  4] Sent 1557178 datagrams

iperf Done.

root@riodemoubuntu16:~# iperf3 -c 127.0.0.1 -u -l 16 -b 40M
Connecting to host 127.0.0.1, port 5201
[  4] local 127.0.0.1 port 42302 connected to 127.0.0.1 port 5201
[ ID] Interval           Transfer     Bandwidth       Total Datagrams
[  4]   0.00-1.00   sec  4.20 MBytes  35.3 Mbits/sec  275536  
[  4]   1.00-2.00   sec  4.35 MBytes  36.5 Mbits/sec  285376  
[  4]   2.00-3.00   sec  4.43 MBytes  37.2 Mbits/sec  290304  
[  4]   3.00-4.00   sec  4.44 MBytes  37.3 Mbits/sec  291112  
[  4]   4.00-5.00   sec  4.39 MBytes  36.8 Mbits/sec  287557  
[  4]   5.00-6.00   sec  4.65 MBytes  39.0 Mbits/sec  304548  
[  4]   6.00-7.00   sec  4.82 MBytes  40.4 Mbits/sec  315977  
[  4]   7.00-8.00   sec  4.87 MBytes  40.9 Mbits/sec  319312  
[  4]   8.00-9.00   sec  4.87 MBytes  40.8 Mbits/sec  318979  
[  4]   9.00-10.00  sec  4.87 MBytes  40.9 Mbits/sec  319429  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Jitter    Lost/Total Datagrams
[  4]   0.00-10.00  sec  45.9 MBytes  38.5 Mbits/sec  0.002 ms  11167/3008130 (0.37%)  
[  4] Sent 3008130 datagrams

iperf Done.

Amazon Linux 2 (c5.xlarge)

$ uname -r
4.14.77-70.59.amzn1.x86_64

$ iperf3 -c 127.0.0.1 -u -l 16 -b 20M
Connecting to host 127.0.0.1, port 5201
[  4] local 127.0.0.1 port 41480 connected to 127.0.0.1 port 5201
[ ID] Interval           Transfer     Bandwidth       Total Datagrams
[  4]   0.00-1.00   sec  2.26 MBytes  19.0 Mbits/sec  148332  
[  4]   1.00-2.00   sec  2.37 MBytes  19.9 Mbits/sec  155594  
[  4]   2.00-3.00   sec  2.39 MBytes  20.0 Mbits/sec  156305  
[  4]   3.00-4.00   sec  2.38 MBytes  20.0 Mbits/sec  156197  
[  4]   4.00-5.00   sec  2.38 MBytes  20.0 Mbits/sec  156199  
[  4]   5.00-6.00   sec  2.38 MBytes  20.0 Mbits/sec  156255  
[  4]   6.00-7.00   sec  2.38 MBytes  20.0 Mbits/sec  156204  
[  4]   7.00-8.00   sec  2.39 MBytes  20.0 Mbits/sec  156304  
[  4]   8.00-9.00   sec  2.38 MBytes  20.0 Mbits/sec  156166  
[  4]   9.00-10.00  sec  2.39 MBytes  20.0 Mbits/sec  156366  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Jitter    Lost/Total Datagrams
[  4]   0.00-10.00  sec  23.7 MBytes  19.9 Mbits/sec  0.002 ms  0/1553922 (0%)  
[  4] Sent 1553922 datagrams

iperf Done.

$ iperf3 -c 127.0.0.1 -u -l 16 -b 40M
Connecting to host 127.0.0.1, port 5201
[  4] local 127.0.0.1 port 48357 connected to 127.0.0.1 port 5201
[ ID] Interval           Transfer     Bandwidth       Total Datagrams
[  4]   0.00-1.00   sec  4.60 MBytes  38.6 Mbits/sec  301608  
[  4]   1.00-2.00   sec  4.84 MBytes  40.6 Mbits/sec  316992  
[  4]   2.00-3.00   sec  4.81 MBytes  40.3 Mbits/sec  314942  
[  4]   3.00-4.00   sec  4.74 MBytes  39.8 Mbits/sec  310965  
[  4]   4.00-5.00   sec  4.79 MBytes  40.2 Mbits/sec  314022  
[  4]   5.00-6.00   sec  4.52 MBytes  37.9 Mbits/sec  295948  
[  4]   6.00-7.00   sec  4.87 MBytes  40.8 Mbits/sec  319005  
[  4]   7.00-8.00   sec  4.85 MBytes  40.7 Mbits/sec  318150  
[  4]   8.00-9.00   sec  4.82 MBytes  40.4 Mbits/sec  315898  
[  4]   9.00-10.00  sec  4.65 MBytes  39.0 Mbits/sec  304466  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Jitter    Lost/Total Datagrams
[  4]   0.00-10.00  sec  47.5 MBytes  39.8 Mbits/sec  0.002 ms  0/3111996 (0%)  
[  4] Sent 3111996 datagrams

iperf Done.

RHEL 7.6 (c5.xlarge)

$ uname -r
3.10.0-957.el7.x86_64

$ iperf3 -c 127.0.0.1 -u -l 16 -b 20M
Connecting to host 127.0.0.1, port 5201
[  4] local 127.0.0.1 port 48367 connected to 127.0.0.1 port 5201
[ ID] Interval           Transfer     Bandwidth       Total Datagrams
[  4]   0.00-1.00   sec  2.36 MBytes  19.8 Mbits/sec  154814  
[  4]   1.00-2.00   sec  2.39 MBytes  20.0 Mbits/sec  156586  
[  4]   2.00-3.00   sec  2.37 MBytes  19.9 Mbits/sec  155641  
[  4]   3.00-4.00   sec  2.36 MBytes  19.8 Mbits/sec  154891  
[  4]   4.00-5.00   sec  2.40 MBytes  20.2 Mbits/sec  157519  
[  4]   5.00-6.00   sec  2.38 MBytes  20.0 Mbits/sec  156173  
[  4]   6.00-7.00   sec  2.39 MBytes  20.0 Mbits/sec  156525  
[  4]   7.00-8.00   sec  2.40 MBytes  20.1 Mbits/sec  157147  
[  4]   8.00-9.00   sec  2.36 MBytes  19.8 Mbits/sec  154753  
[  4]   9.00-10.00  sec  2.41 MBytes  20.2 Mbits/sec  158179  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Jitter    Lost/Total Datagrams
[  4]   0.00-10.00  sec  23.8 MBytes  20.0 Mbits/sec  0.002 ms  0/1562228 (0%)  
[  4] Sent 1562228 datagrams

iperf Done.

$ iperf3 -c 127.0.0.1 -u -l 16 -b 40M
Connecting to host 127.0.0.1, port 5201
[  4] local 127.0.0.1 port 49896 connected to 127.0.0.1 port 5201
[ ID] Interval           Transfer     Bandwidth       Total Datagrams
[  4]   0.00-1.00   sec  4.17 MBytes  35.0 Mbits/sec  273606  
[  4]   1.00-2.00   sec  4.48 MBytes  37.5 Mbits/sec  293305  
[  4]   2.00-3.00   sec  4.06 MBytes  34.1 Mbits/sec  266306  
[  4]   3.00-4.00   sec  4.17 MBytes  35.0 Mbits/sec  273346  
[  4]   4.00-5.00   sec  4.60 MBytes  38.6 Mbits/sec  301576  
[  4]   5.00-6.00   sec  4.67 MBytes  39.2 Mbits/sec  306199  
[  4]   6.00-7.00   sec  4.06 MBytes  34.0 Mbits/sec  265854  
[  4]   7.00-8.00   sec  4.52 MBytes  37.9 Mbits/sec  296364  
[  4]   8.00-9.00   sec  4.06 MBytes  34.0 Mbits/sec  265765  
[  4]   9.00-10.00  sec  4.03 MBytes  33.8 Mbits/sec  263866  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Jitter    Lost/Total Datagrams
[  4]   0.00-10.00  sec  42.8 MBytes  35.9 Mbits/sec  0.002 ms  63/2806187 (0.0022%)  
[  4] Sent 2806187 datagrams

iperf Done.

rpmbuildする時に

  • 投稿日:
  • by
  • カテゴリ:

rpmbuildする時に依存するパッケージをインストールするのに以下のようにしてるけど、もっと楽な方法無いかなぁ...。

$ sudo yum -y install `rpmbuild -bb rpmbuild/SPECS/kernel.spec 2>&1 | awk '/is needed/ {print $1}'`

追記:yum-builddepで良かった。

ので、書いた。利用にあたっての前提条件は、Azure Text-to-Speechのインスタンスが作ってあること。サービスレベルはNeuralを使いたいならStandardにする必要がある。

コードその他はGitHubにおいてあるので、git cloneするか、azure-tts(シェルスクリプト)と、Azure-TTS.workflow.zip(AppleScriptで書かれたサービス)をダウンロードして、前者は~/bin/に放り込み、パーミションを設定、後者は解凍後、ダブルクリックすれば~/Library/Services/にインストールされるはず。テキストを選んでコンテキストメニューに表示されれば一応インストールは正常。

macOSの「アクセシビリティ」の警告が出るので、SafariなりMailなりを「環境設定」の「セキュリティとプライバシー」「アクセシビリティ」で「制御を許可」に追加すれば使えるようになるはず。アクセシビリティのデータベースは壊れるバグがあるっぽいので、おかしかったら、ターミナルから

$ tccutil reset Accessibility
すればリセットされるので、再設定すれば直るはず。