OpenMPDK / KVSSD

KV SSD host software including APIs and drivers
Other
230 stars 55 forks source link

[KV API] About using UDD #34

Closed terrafin closed 5 years ago

terrafin commented 5 years ago
  1. UDD for KVSSD requires root privilege. Is it normal?

  2. Why does UDD(DPDK) need huge page of size 2^20 Bytes(or 1GB)? It doesn't work with 2MB size huge page.

hao86yan commented 5 years ago

For the first question that UDD requires root privilege, UDD of KVSSD is implemented based on Intel SPDK. SPDK needs root privilege to allocate huge pages and map devices through vfio.

For the second question, the huge page size that UDD needs is 2MB size. 1GB is the total size of Huge Pages buffer that is pre-allocated for DPDK to implement user-space memory allocator

terrafin commented 5 years ago

Got it, thanks!