Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.

Segmentation fault under Xen

cyla
Beginner
799 Views

I am trying to install OpenVino under Xen (Dom0) following the steps described here

Installation seems to work OK, but Step 5 fails with a segmentation fault.

$ python -c "from openvino import Core; print(Core().available_devices)"
Segmentation fault

dmesg shows the following:

[Feb15 13:47] python3[20270]: segfault at c ip 00007f2ac7739c07 sp 00007ffc8f7a2ac0 error 6 in libopenvino.so.2023.3.0[7f2ac6de6000+a81000] likely on CPU 3 (core 0, socket 0)
[  +0.000025] Code: ff e9 88 fe ff ff 0f 1f 44 00 00 48 8b 75 00 31 c9 49 01 f0 0f 1f 80 00 00 00 00 41 8d 14 0a 48 63 c2 48 8d 04 40 49 8b 04 c1 <89> 48 0c 89 48 14 89 10 44 89 60 10 48 c7 40 04 00 00 00 00 41 83

The command does work when running on the same OS without Xen:

$ python -c "from openvino import Core; print(Core().available_devices)"
['CPU']

cpuinfo under Xen (first core only):

$ cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 122
model name      : Intel(R) Celeron(R) J4125 CPU @ 2.00GHz
stepping        : 8
microcode       : 0x18
cpu MHz         : 1996.800
cache size      : 4096 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 1
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu de tsc msr pae mce cx8 apic sep mca cmov pat clflush acpi mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid tsc_known_freq pni pclmulqdq monitor est ssse3 cx16 sse4_1 sse4_2 movbe popcnt aes xsave rdrand hypervisor lahf_lm 3dnowprefetch cpuid_fault ssbd ibrs ibpb stibp ibrs_enhanced fsgsbase erms rdseed clflushopt sha_ni xsaveopt xsavec xgetbv1 rdpid md_clear arch_capabilities
bugs            : spectre_v1 spectre_v2 spec_store_bypass
bogomips        : 3993.60
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:

cpuinfo on bare-metal (first core only):

$ cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 122
model name      : Intel(R) Celeron(R) J4125 CPU @ 2.00GHz
stepping        : 8
microcode       : 0x22
cpu MHz         : 798.771
cache size      : 4096 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 4
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 24
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg cx16 xtpr pdcm sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave rdrand lahf_lm 3dnowprefetch cpuid_fault cat_l2 cdp_l2 ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust smep erms mpx rdt_a rdseed smap clflushopt intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts umip rdpid md_clear arch_capabilities
vmx flags       : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling
bugs            : spectre_v1 spectre_v2 spec_store_bypass
bogomips        : 3993.60
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:

Is it at all possible to use OpenVino under Xen?

0 Kudos
8 Replies
Iffa_Intel
Moderator
767 Views

Hi,

 

I noticed that you are using Intel(R) Celeron(R) J4125 CPU @ 2.00GHz hardware.

The installation steps that you referred to (which you shared) are for Raspberry Pi.

 

It's recommended to choose one of the below options instead:

  1. OpenVINO-dev PyPI
  2. OpenVINO Runtime (choose according to your OS)
  3. OpenVINO build from source

 

Could you clarify the details of the hardware you are using? (Are you using bare-metal hardware  (eg: Raspberry Pi) or  PC/laptop, etc)

 

Cordially,

Iffa

 

0 Kudos
cyla
Beginner
753 Views

Hi Iffa,

Indeed I am using an Intel(R) Celeron(R) J4125 CPU as part of an Odyssey X86J4125864 from Seeed studio, but I don't see how the linked installation method is Raspberry PI specific.

Your first link has a deprecation notice and suggests the installation of OpenVINO(TM) Runtime which is essentially the same as my link.

Your second link also provides the same steps that were described on my link.

But for clarity, here are the exact steps I executed:

cd ~
mkdir openvino
cd openvino
python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
pip install openvino
python -c "from openvino import Core; print(Core().available_devices)"

The last steps results in the Segmentation fault.

As for the hardware, I'm using either bare-metal hardware booting into Linux (in which case the command works), or Xen virtualization on the same machine, booting into Xen and then into the same Linux kernel as the privileged domain (Xen Dom0) with the same OS installation, in which case the command does not work.

0 Kudos
Iffa_Intel
Moderator
698 Views

Could you try pip install openvino-dev[onnx] and see whether that is still the same?




Cordially,

Iffa


0 Kudos
cyla
Beginner
682 Views

After creating a new virtual environment the installation succeeds, but running

python -c "from openvino import Core; print(Core().available_devices)"

still results in a Segmentation fault

0 Kudos
Iffa_Intel
Moderator
658 Views

Hi,

 

Thanks for clarifying.

With those results, it is confirmed that Intel® Celeron® Processor J4125 (4M Cache, up to 2.70 GHz) is not supported by OpenVINO for inferencing (even with some workaround).

 

The system requirements for Intel® Distribution of OpenVINO™ toolkit are available at System Requirements .

 

It's recommended to use a virtual machine with a system requirement that is officially supported by OpenVINO.

 

 

Cordially,

Iffa

 

0 Kudos
cyla
Beginner
648 Views

The thing is, it does work when I boot without Xen (as mentioned in the opening post), the issue only presented itself after migrating to Xen-based system

0 Kudos
Iffa_Intel
Moderator
440 Views

Hi,


After some clarification, this hypervisor is not officially supported by OpenVINO.

Hence, it might or might not work on systems and issues are expected.


Cordially,

Iffa


0 Kudos
Iffa_Intel
Moderator
325 Views

Hi,

 

Intel will no longer monitor this thread since we have provided a solution. If you need any additional information from Intel, please submit a new question

 

 

Cordially,

Iffa

 

0 Kudos
Reply