Error with memory allocation when running readout.exe

Dear experts,

When running readout.exe file://readout.cfg , we are getting an Error:

2019-09-18 10:29:52.442389     Creating memory bank bank-test1: type MemoryMappedFile size 8589934592
2019-09-18 10:29:52.442409     Creating shared memory block for bank bank-test1 : size 8589934592 using /var/lib/hugetlbfs/global/pagesize-1GB/readout-bank-test1
2019-09-18 10:29:52.443568     Failed to allocate memory buffer : /build/workarea/sw/20156049/2/SOURCES/ReadoutCard/v0.11.11/v0.11.11/src/MemoryMappedFile.cxx(143): Throw in function bool AliceO2::roc::MemoryMappedFile::map(const string&, size_t)
Dynamic exception type: boost::wrapexcept<AliceO2::roc::MemoryMapException>
std::exception::what: Failed to memory map file: Cannot allocate memory
[Possible causes]:
o  Not enough memory available
o  Not enough hugepages allocated (check 'hugeadm --pool-list')
o  Stale hugepage / uio_pci_dma resources (run 'roc-cleanup')
[AliceO2::roc::ErrorInfo::_FileSize*] = 8589934592
AliceO2::Common::ErrorInfo::_Message*] = Failed to memory map file: Cannot allocate memory
[AliceO2::Common::ErrorInfo::_FileName*] = /var/lib/hugetlbfs/global/pagesize-1GB/readout-bank-test1
2019-09-18 10:29:52.443646 !!! Error - Failed to create memory bank bank-test1
2019-09-18 10:29:52.443670     Configuring equipment equipment-rorc-1: rorc
2019-09-18 10:29:52.443739     Equipment CRU_UiB_SETUP: from config [equipment-rorc-1], max rate=100.000000 Hz, idleSleepTime=200 us, outputFifoSize=4000
2019-09-18 10:29:52.443747     Equipment CRU_UiB_SETUP: requesting memory pool 4000 pages x 2097152 bytes from bank 'bank-test1', block aligned @ 0x200000, 1st page offset @ 0x0
2019-09-18 10:29:52.443756     pageSpaceReserved = 56, aligning 1st page @ 0x1FFFC8
2019-09-18 10:29:52.443765 !!! Error - Can not create memory pool: no memory bank defined
2019-09-18 10:29:52.443772 !!! Error - Failed to create pool of memory pages
2019-09-18 10:29:52.443797 !!! Error - Failed to configure equipment equipment-rorc-1 : error #176
2019-09-18 10:29:52.443804 !!! Fatal - Some equipments failed to initialize, exiting 

Please point me to the way to solve this problem?


As said in the error message, you can check (as root) that you have enough hugepage buffer allocated on this machine with hugeadm --pool-list

According to the message you sent by email yesterday afternoon,
the machine has only 4G allocated but you are trying to use 8G.