-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

I think this is mounted by default on RH7: 

  hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,seclabel)

so the script here is seeing 1 mount: 

  if [ `cat /proc/mounts | grep hugetlbfs | wc -l` -eq 0 ]; then
        sync && echo 3 > /proc/sys/vm/drop_caches
        echo $HUGEPAGES > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
        mkdir /mnt/huge
        mount -t hugetlbfs nodev /mnt/huge
  fi

So it was skipping this part when I ran load_driver.sh . 

Maybe this would be better?

  if [ `mount | grep /mnt/huge | wc -l` -eq 0 ]; then

Jim

On 03/09/2015 06:50 PM, Alfredo Cardigliano wrote:
> An equivalent line is already there
> 
> echo $HUGEPAGES > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
> 
> Alfredo
> 
>> On 08 Mar 2015, at 20:20, Jim Hranicky <[email protected]> wrote:
>>
>> Should something like this be added to load_driver.sh ?
>>
>>  echo 512 > /proc/sys/vm/nr_hugepages
>>
>> Jim
>> _______________________________________________
>> Ntop-misc mailing list
>> [email protected]
>> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
> 
> 
> 
> _______________________________________________
> Ntop-misc mailing list
> [email protected]
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iF4EAREIAAYFAlT/FFwACgkQCGX2wHRYUXSKbAD+LxH+q7SSS+qFxgXGhaYzw1sx
5ugkn2IVm71N6FCj0WgA/0HWJwpn/frIErg4yrDQAIsGv8XBy9t4RLSeYXmnrrCb
=tYXT
-----END PGP SIGNATURE-----
_______________________________________________
Ntop-misc mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-misc

Reply via email to