I am working with an application written using DPDK-1.6.0r0 and I want to debug it. My first idea was to use gdb, but I got this error: EAL: No free hugepages reported in hugepages-2048kB
I compiled the environment ih this way:
make install T=x86_64-default-linuxapp-gcc EXTRA_CFLAGS='-g -ggdb'
1
hugepages reservation:
cd /tmp
sudo mkdir -p /mnt/huge
grep -s '/mnt/huge' /proc/mounts > /dev/null
if [ $? -ne 0 ] ; then
sudo mount -t hugetlbfs nodev /mnt/huge
fi
Pages=256
echo "echo $Pages > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages" > .echo_tmp
echo "Reserving hugepages"
sudo sh .echo_tmp
rm -f .echo_tmp
and then I run the app with gdb:
gdb appname`
...
(gdb) start appname -c 7e -n 3 --no-hpet -- -p 1`
Do you have some idea to solve it?