# CPU Increase when enabling AES-GCM

**URL:** <https://community.f5.com/t/cpu-increase-when-enabling-aes-gcm/12811>\
**Category:** Technical Forums\
**Tags:** performance, tmsh, tmos, deployment, security, application-delivery\
**Created:** [January 5, 2015, 11:10pm UTC](https://community.f5.com/t/cpu-increase-when-enabling-aes-gcm/12811 "2015-01-05T23:10:08Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Heyer\_1508](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@John\_Heyer\_1508](https://community.f5.com/u/John_Heyer_1508)\
**Post date:** [January 5, 2015, 11:10pm UTC](https://community.f5.com/t/cpu-increase-when-enabling-aes-gcm/12811/1 "2015-01-05T23:10:08Z")

</div>

Supposedly AES-GCM should be the “best” cipher right now in terms of efficiency, however I noticed when enabling it on the F5, CPU goes up significantly. This is on a Viprion 2100 blade, 11.5.1 HF6. Anyone else seeing this?

 ![image_71652.png](https://d20hrnpixdzcsd.cloudfront.net/original/3X/6/4/6436587e51751c736aaad4ba1935fe757957f28a.png)

I’m using “MEDIUM:!ADH:!RC4:@SPEED:RSA+3DES” for the cipher string. Adding a “!AES-GCM” to the line causes the CPU to immediately drop.

---

<div class="post-metadata">

**Author:** ![James\_Thomson\_0](https://avatars.discourse-cdn.com/v4/letter/j/eb9ed0/32.png) [@James\_Thomson\_0](https://community.f5.com/u/James_Thomson_0)\
**Post date:** [January 7, 2015, 12:23am UTC](https://community.f5.com/t/cpu-increase-when-enabling-aes-gcm/12811/2 "2015-01-07T00:23:39Z")

</div>

Are you still using the NATIVE SSL stack or did you change to COMPAT in the SSL profile? [404 Page not found | BIG-IP Documentation](https://support.f5.com/kb/en-us/solutions/public/13000/200/sol13213.html)

I think this confirms that:

> **[404 Page not found | BIG-IP Documentation](https://techdocs.f5.com/kb/en-us/solutions/public/13000/100/sol13163.html)**
>
> Usage information and technical documentation for BIG-IP and other related F5 products

Looking at that solution, it has a command to run and verify that AES-GCM is in your NATIVE, but in 11.6 it is. If you do a "show ltm profile client-ssl can you tell which ciphers are mostly being used now that may be more efficient?

---

<div class="post-metadata">

**Author:** ![John\_Heyer\_1508](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@John\_Heyer\_1508](https://community.f5.com/u/John_Heyer_1508)\
**Post date:** [January 7, 2015, 1:43am UTC](https://community.f5.com/t/cpu-increase-when-enabling-aes-gcm/12811/3 "2015-01-07T01:43:18Z")

</div>

I’m using “MEDIUM” with a couple tweaks and all those ciphers, including anything AES-GCM, should be native. The statistics do confirm this:

 ![image_71654.png](https://d20hrnpixdzcsd.cloudfront.net/original/2X/f/f5fcf6f87398ad7bcf4f0a8cfcd0d7edf38b4503.png)

We’ve had some issues in the past with the SSL acceleration on the Viprion 2100 blades, so I’m suspecting it’s a performance bug.

---

<div class="post-metadata">

**Author:** ![James\_Thomson\_0](https://avatars.discourse-cdn.com/v4/letter/j/eb9ed0/32.png) [@James\_Thomson\_0](https://community.f5.com/u/James_Thomson_0)\
**Post date:** [January 12, 2015, 2:36pm UTC](https://community.f5.com/t/cpu-increase-when-enabling-aes-gcm/12811/4 "2015-01-12T14:36:44Z")

</div>

If you find out from support, can you post here? I may run into this. Thanks

---

<div class="post-metadata">

**Author:** ![John\_Heyer\_1508](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@John\_Heyer\_1508](https://community.f5.com/u/John_Heyer_1508)\
**Post date:** [January 12, 2015, 6:06pm UTC](https://community.f5.com/t/cpu-increase-when-enabling-aes-gcm/12811/5 "2015-01-12T18:06:49Z")

</div>

I opened a support case and they confirmed it’s been reported by a few customers and is likely a bug. The suggested work-around is put !AES-GCM in the cipher string.

Another work-around I discovered was prefer 256-bit AES over 128-bit. The major browsers don’t support 256-bit AES-GCM, so they’ll negotiate regular AES and essentially you’ll never see the issue.

---

<div class="post-metadata">

**Author:** ![Brad\_Parker](https://avatars.discourse-cdn.com/v4/letter/b/a87d85/32.png) [@Brad\_Parker](https://community.f5.com/u/Brad_Parker)\
**Post date:** [January 12, 2015, 9:28pm UTC](https://community.f5.com/t/cpu-increase-when-enabling-aes-gcm/12811/6 "2015-01-12T21:28:19Z")

</div>

Were you provide with a bug ID?

---

<div class="post-metadata">

**Author:** ![John\_Heyer\_1508](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@John\_Heyer\_1508](https://community.f5.com/u/John_Heyer_1508)\
**Post date:** [January 12, 2015, 9:59pm UTC](https://community.f5.com/t/cpu-increase-when-enabling-aes-gcm/12811/7 "2015-01-12T21:59:31Z")

</div>

Not yet - it sounded like they’ve just found out about this within the last couple weeks. I’ll post the bug ID here when it’s provided.

---

<div class="post-metadata">

**Author:** ![JG](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@JG](https://community.f5.com/u/JG)\
**Post date:** [January 13, 2015, 2:15am UTC](https://community.f5.com/t/cpu-increase-when-enabling-aes-gcm/12811/8 "2015-01-13T02:15:58Z")

</div>

We upgraded to v11.6.0 recently and had some serious issues, and had to downgrade to v11.5.1 briefly. I am now glad we stuck to v11.6.0, for our workload is much higher than is shown in your graph, but there is no problem with CPU usage, although there is some major behaviour change in comparison with v11.3.0 we upgraded from.

---

<div class="post-metadata">

**Author:** ![nitass\_89166](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@nitass\_89166](https://community.f5.com/u/nitass_89166)\
**Post date:** [January 28, 2015, 5:45am UTC](https://community.f5.com/t/cpu-increase-when-enabling-aes-gcm/12811/9 "2015-01-28T05:45:38Z")

</div>

ID 501045 - Add support for SHA256 and SHA384 to the Nitrox driver

ID 499946 - Nitrox reports bad record error on highly fragmented SSL records with aes-gcm ciphers

Cr. Erick, Piotr, Mike

---

<div class="post-metadata">

**Author:** ![nitass](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/nitass/32/2270_2.png) [@nitass](https://community.f5.com/u/nitass)\
**Post date:** [January 28, 2015, 5:45am UTC](https://community.f5.com/t/cpu-increase-when-enabling-aes-gcm/12811/10 "2015-01-28T05:45:38Z")

</div>

ID 501045 - Add support for SHA256 and SHA384 to the Nitrox driver

ID 499946 - Nitrox reports bad record error on highly fragmented SSL records with aes-gcm ciphers

Cr. Erick, Piotr, Mike

---

<div class="post-metadata">

**Author:** ![John\_Heyer\_1508](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@John\_Heyer\_1508](https://community.f5.com/u/John_Heyer_1508)\
**Post date:** [February 26, 2015, 11:41pm UTC](https://community.f5.com/t/cpu-increase-when-enabling-aes-gcm/12811/11 "2015-02-26T23:41:35Z")

</div>

Ah, so the problem isn’t so much AES-GCM but rather SHA384 or SHA256 as the MAC. Indeed, you’ll see similar results with ECDHE-RSA-AES256-SHA384 and ECDHE-RSA-AES128-SHA256. Quick work-around is use “ECDHE+AES+SHA” in the cipher string.

---

<div class="post-metadata">

**Author:** ![Brad\_Parker](https://avatars.discourse-cdn.com/v4/letter/b/a87d85/32.png) [@Brad\_Parker](https://community.f5.com/u/Brad_Parker)\
**Post date:** [February 27, 2015, 3:16pm UTC](https://community.f5.com/t/cpu-increase-when-enabling-aes-gcm/12811/12 "2015-02-27T15:16:44Z")

</div>

Adding !SHA256 and !SHA384 will do the trick too. If SHA256 and SHA384 are an issue, that makes AES-GCM ciphers unusable until its fixed.

Nitass, are those published BugIDs? I can’t find them on [askf5.com](http://askf5.com).

---

<div class="post-metadata">

**Author:** ![Brad\_Parker\_139](https://avatars.discourse-cdn.com/v4/letter/b/b9e5f3/32.png) [@Brad\_Parker\_139](https://community.f5.com/u/Brad_Parker_139)\
**Post date:** [February 27, 2015, 3:16pm UTC](https://community.f5.com/t/cpu-increase-when-enabling-aes-gcm/12811/13 "2015-02-27T15:16:44Z")

</div>

Adding !SHA256 and !SHA384 will do the trick too. If SHA256 and SHA384 are an issue, that makes AES-GCM ciphers unusable until its fixed.

Nitass, are those published BugIDs? I can’t find them on [askf5.com](http://askf5.com).

---

<div class="post-metadata">

**Author:** ![Kai\_Kataja](https://avatars.discourse-cdn.com/v4/letter/k/f14d63/32.png) [@Kai\_Kataja](https://community.f5.com/u/Kai_Kataja)\
**Post date:** [March 18, 2015, 12:12pm UTC](https://community.f5.com/t/cpu-increase-when-enabling-aes-gcm/12811/14 "2015-03-18T12:12:49Z")

</div>

I could not wait anymore and had to find the TLS/SSL hardware used from article “SOL7778: BIG-IP hardware SSL and compression cards”. Then search “Product Brief” for the specific chip to be sure if SHA-2 hardware acceleration is possible. Hopefully we get some answer from F5 to this SHA-2 CPU consumption issue.

---

<div class="post-metadata">

**Author:** ![nitass](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/nitass/32/2270_2.png) [@nitass](https://community.f5.com/u/nitass)\
**Post date:** [March 22, 2015, 10:52am UTC](https://community.f5.com/t/cpu-increase-when-enabling-aes-gcm/12811/15 "2015-03-22T10:52:25Z")

</div>

sorry i missed your post. no, it is not published (as of now) but you can open a support case and ask for bug information.

---

<div class="post-metadata">

**Author:** ![nitass](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/nitass/32/2270_2.png) [@nitass](https://community.f5.com/u/nitass)\
**Post date:** [March 22, 2015, 10:52am UTC](https://community.f5.com/t/cpu-increase-when-enabling-aes-gcm/12811/16 "2015-03-22T10:52:25Z")

</div>

sorry i missed your post. no, it is not published (as of now) but you can open a support case and ask for bug information.

---

<div class="post-metadata">

**Author:** ![John\_Heyer\_1508](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@John\_Heyer\_1508](https://community.f5.com/u/John_Heyer_1508)\
**Post date:** [June 27, 2015, 3:55pm UTC](https://community.f5.com/t/cpu-increase-when-enabling-aes-gcm/12811/17 "2015-06-27T15:55:01Z")

</div>

The second one is now fixed in 11.6.0 HF5: 499946-3 Nitrox might report bad records on highly fragmented SSL records I still haven’t seen any mention of SHA-2 family support in hardware.

---

<div class="post-metadata">

**Author:** ![John\_Heyer\_1508](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@John\_Heyer\_1508](https://community.f5.com/u/John_Heyer_1508)\
**Post date:** [June 27, 2015, 3:55pm UTC](https://community.f5.com/t/cpu-increase-when-enabling-aes-gcm/12811/18 "2015-06-27T15:55:01Z")

</div>

The second one is now fixed in 11.6.0 HF5: 499946-3 Nitrox might report bad records on highly fragmented SSL records I still haven’t seen any mention of SHA-2 family support in hardware.

---

<div class="post-metadata">

**Author:** ![John\_Heyer\_1508](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@John\_Heyer\_1508](https://community.f5.com/u/John_Heyer_1508)\
**Post date:** [April 21, 2017, 7:35pm UTC](https://community.f5.com/t/cpu-increase-when-enabling-aes-gcm/12811/19 "2017-04-21T19:35:00Z")

</div>

Looks like this did get fixed. We’re on 11.6.1 HF2 now and I see no noticeable CPU increase with this cipher string, which should result in the vast majority of handshakes going SHA256 or SHA384

```tcl
ECDHE+AES-GCM:ECDHE+AES:RSA+AES+SHA:RSA+3DES

```

I’m thinking it may have been back in 11.6.0 HF5, which fixed this bug:

[491030-6 : Nitrox crypto accelerator can sometimes hang when encrypting SSL records](https://support.f5.com/csp/article/K16409)
