[SERVER-60833] illegal instruction error on Intel(R) Xeon(R) CPU E5-4640 Created: 20/Oct/21  Updated: 27/Oct/23  Resolved: 26/Oct/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 5.0.3
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Torsten Segner Assignee: Backlog - Triage Team
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

RHEL 7.9
Intel(R) Xeon(R) CPU E5-4640 0 @ 2.40GHz


Issue Links:
Related
related to DOCS-14894 Add AVX requirement to DOCS-14757 Closed
Assigned Teams:
Server Triage
Operating System: ALL
Steps To Reproduce:
Participants:

 Description   

Starting mongod (community version 5.0.3) results in an immediate illegal instruction error with Intel Xeon E5-4640 CPUs (https://ark.intel.com/content/www/us/en/ark/products/64603/intel-xeon-processor-e54640-20m-cache-2-40-ghz-8-00-gts-intel-qpi.html).

 



 Comments   
Comment by Dmitry Agranat [ 26/Oct/21 ]

That's a good point torsten.segner@plusserver.com, we'll need to update our documentation to specifically mention AVX instructions. As a side note, any platform/microarchitecture requirement must be met on both "Guest" and "Host" in a virtualized architecture.

Comment by Torsten Segner [ 21/Oct/21 ]

Ah, that explains this.

Maybe you should add this tiny bit of vital information to the referenced documentation part.
It only says

 

x86_64
MongoDB requires the following minimum x86_64 microarchitectures: [2]
For Intel x86_64, MongoDB requires one of:
 
a Sandy Bridge or later Core processor, or a Tiger Lake or later Celeron or Pentium processor.
For AMD x86_64, MongoDB requires:
 
a Bulldozer or later processor.
Starting in MongoDB 5.0, mongod, mongos, and the legacy mongo shell no longer support x86_64 platforms which do not meet this minimum microarchitecture requirement.

 

Since the used Xeon E5-4640 CPU runs by the code name of Sandy Bridge EP, this might suggest they should be compatible when they are not as they lack the needed AVX instructions.

Comment by Dmitry Agranat [ 20/Oct/21 ]

As of v5.0, prebuilt MongoDB binaries require a processor that supports AVX instructions (for more details, see https://docs.mongodb.com/manual/administration/production-notes/#x86_64). Can you check that both VM and VMWare ESXi 6.5.0 Hypervisor support AVX instructions?

Comment by Torsten Segner [ 20/Oct/21 ]

No, it's a VM running on a VMWare ESXi 6.5.0 Hypervisor

Comment by Dmitry Agranat [ 20/Oct/21 ]

torsten.segner@plusserver.com, Is it running under a virtual machine in VirtualBox?

Comment by Torsten Segner [ 20/Oct/21 ]

Hi Dmitry,

the exact error is 'illegal instruction' - nothing more.
The daemon immediately exits without further notice in any logs.
I have searched in /var/log/mongodb/mongod.log, /var/log/messages and journalctl but there is no hint on why it would immediately fail anywhere to be found.

Comment by Dmitry Agranat [ 20/Oct/21 ]

Hi torsten.segner@plusserver.com, can you please post the exact error you are getting?

Generated at Thu Feb 08 05:50:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.