Mario,
Kudos on the detailed analysis!
Have you run "openssl speed" on different systems to compare?
Thanks.
On Wed, Dec 13, 2023 at 09:12:16PM +0000, Mario via IBM TechXchange Community wrote:
> I've had a good look at this. Thanks for the tuning tips @Emerson Jose de Lima <https: community.ibm.com/community/user/network/members/profile?userkey="2beddf31-8983-4cf8-b129-0189bd73c14d">. This does not appear to be a tuning issue.
>
>
> The bottom line is that newer versions of openssl (1.1.1 and up) for AIX have very slow md5 performance. I'm measuring a speed decline by a factor of 4 between 1.0.2 and 3.0.10 versions of openssl. It would appear that the new versions are build with xlc, and the old ones with "cc".
>
>
> This explains to my satisfaction the performance difference I'm seeing in transferring a single 1GB file of random data across the network from a rhel 8 x86 box to an AIX box. I tested on AIX 7.3 and 7.2. You can toggle the performance by specifying a different checksum algorithm. If you choose md4, sha1, or none, then you get full speed. md5 is the default digest for rsync protocols >= 30.
>
>
> I've also been able to sidestep the issue by rebuilding the rsync rpm from source and disabling openssl in the configure stage. In this case, rsync uses its own code to generate md5 and is line speed. That might be a quick fix.
>
>
> New versions of rsync are starting to support xxhash, and that's probably something that should be built for AIX. I couldn't get it build for AIX in a way that would let me link it in the rsync build. Oh well.
>
>
> For anyone looking for a workaround, use
>
>
> rsync --checksum-choice=sha1
>
>
> which was very fast for me using the rsync available in the Linux toolbox.
>
>
> Would someone please test this to verify for me?
>
>
> rsync-4.2.7 and openssl >= 1.1.1 on AIX >= 7.2. Transfer a 1GB file from Linux to AIX.
>
>
> Thanks,
>
>
> M.
>
>
> ------------------------------
> Mario
> ------------------------------
> -------------------------------------------
> Original Message:
> Sent: Thu December 07, 2023 02:54 PM
> From: Mario
> Subject: rsync performance problem
>
>
> AIX 7300-02-01-2346
>
> rsync 3.2.7-1 rpm
>
> I have an AIX box that has been slow to transfer files to since I updated to the last TL. It's only rsync that's the issue. I had been getting about 90MB/s uploading to it from a Linux host (Alma 8.9 up to date) but now it's down to 30MB/s. I also transfer from the AIX host to a Linux LPAR on the same managed system, and still only get about 30MB/s.
>
> I installed iperf3 and did some poking. I'm getting line speed of 100MB/s between all hosts. scp transfers are similarly quick.
>
> Recalling that I had to previously downgrade rsync --protocol to 29 I tried that. Lo and behold, 90MB/s. Protocol levels 30 and 31 are slow.
>
> So I tried directly between the Linux workstation and the Linux LPAR. I get line speed at protocol level 31.
>
> It appears that something has changed to slow rsync --protocol=31 down on AIX. I haven't put my finger on it yet, but
>
> Can anyone confirm this observation?
> Use --protocol=29 for now as a workaround.
> If you want to see what protocol level is being negotiated, use --debug=PROTO in your rsync command.
>
> The rsync rpm installed on AIX has a build date of Dec 22 2022.
>
> Many thanks for any insights or assistance you may be able to offer.
>
>
>
>
>
> ------------------------------
> Mario
> ------------------------------
>
>
> Reply to Sender :
https://community.ibm.com/community/user/eGroups/PostReply?GroupId=6211&MID=391372&SenderKey=d8845398-87a2-4151-bca3-0186d8d491ed>
> Reply to Discussion :
https://community.ibm.com/community/user/eGroups/PostReply?GroupId=6211&MID=391372>
>
>
> You are subscribed to "AIX Open Source" as
Russell.Adams@AdamsSystems.nl. To change your subscriptions, go to
http://community.ibm.com/community/user/preferences?section=Subscriptions. To unsubscribe from this community discussion, go to
http://community.ibm.com/HigherLogic/eGroups/Unsubscribe.aspx?UserKey=c23dfccc-9910-40ae-beeb-fdcbced5bf1f&sKey=KeyRemoved&GroupKey=af5415f8-d8d8-4ac4-b3cb-08a8da184054.------------------------------------------------------------------
Russell Adams
Russell.Adams@AdamsSystems.nlPrincipal Consultant Adams Systems Consultancy
https://adamssystems.nl/
Original Message:
Sent: 12/13/2023 4:12:00 PM
From: Mario
Subject: RE: rsync performance problem
I've had a good look at this. Thanks for the tuning tips @Emerson Jose de Lima. This does not appear to be a tuning issue.
The bottom line is that newer versions of openssl (1.1.1 and up) for AIX have very slow md5 performance. I'm measuring a speed decline by a factor of 4 between 1.0.2 and 3.0.10 versions of openssl. It would appear that the new versions are build with xlc, and the old ones with "cc".
This explains to my satisfaction the performance difference I'm seeing in transferring a single 1GB file of random data across the network from a rhel 8 x86 box to an AIX box. I tested on AIX 7.3 and 7.2. You can toggle the performance by specifying a different checksum algorithm. If you choose md4, sha1, or none, then you get full speed. md5 is the default digest for rsync protocols >= 30.
I've also been able to sidestep the issue by rebuilding the rsync rpm from source and disabling openssl in the configure stage. In this case, rsync uses its own code to generate md5 and is line speed. That might be a quick fix.
New versions of rsync are starting to support xxhash, and that's probably something that should be built for AIX. I couldn't get it build for AIX in a way that would let me link it in the rsync build. Oh well.
For anyone looking for a workaround, use
rsync --checksum-choice=sha1
which was very fast for me using the rsync available in the Linux toolbox.
Would someone please test this to verify for me?
rsync-4.2.7 and openssl >= 1.1.1 on AIX >= 7.2. Transfer a 1GB file from Linux to AIX.
Thanks,
M.
------------------------------
Mario
------------------------------
Original Message:
Sent: Thu December 07, 2023 02:54 PM
From: Mario
Subject: rsync performance problem
AIX 7300-02-01-2346
rsync 3.2.7-1 rpm
I have an AIX box that has been slow to transfer files to since I updated to the last TL. It's only rsync that's the issue. I had been getting about 90MB/s uploading to it from a Linux host (Alma 8.9 up to date) but now it's down to 30MB/s. I also transfer from the AIX host to a Linux LPAR on the same managed system, and still only get about 30MB/s.
I installed iperf3 and did some poking. I'm getting line speed of 100MB/s between all hosts. scp transfers are similarly quick.
Recalling that I had to previously downgrade rsync --protocol to 29 I tried that. Lo and behold, 90MB/s. Protocol levels 30 and 31 are slow.
So I tried directly between the Linux workstation and the Linux LPAR. I get line speed at protocol level 31.
It appears that something has changed to slow rsync --protocol=31 down on AIX. I haven't put my finger on it yet, but
- Can anyone confirm this observation?
- Use --protocol=29 for now as a workaround.
If you want to see what protocol level is being negotiated, use --debug=PROTO in your rsync command.
The rsync rpm installed on AIX has a build date of Dec 22 2022.
Many thanks for any insights or assistance you may be able to offer.
------------------------------
Mario
------------------------------
</https:>