Skip to contentSkip to conversation

reg : adding grub entry with hugepages.

DISCUSSION Anand S Angadi 4 participants 10 messages Sep 1, 2014 8 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 54040572.5090002-U1VcRrJwn5T8CqgTAz400NBPR1lH4CV8@public.gmane.org

#2 lore raw

Hello everyone,
I am using fedora 16, i want to Add additional Grub entry with hugepages enabled permanently can u tell me how can i add?
and wher can i add?

Signature · 2 lines
Thanks & Regards,
ANAND

A message that is not in the archive (sent off-list or not yet received): 540431E5.2070909-U1VcRrJwn5T8CqgTAz400NBPR1lH4CV8@public.gmane.org

#4 lore raw

Hi,

Here is an example to enable both 1G and 2M in kernel parameters.

default_hugepagesz=1G hugepagesz=1G hugepages=8 hugepagesz=2M hugepages=512

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Anand S Angadi
Sent: Monday, September 1, 2014 4:44 PM
To: [email protected]
Subject: [dpdk-dev] reg : adding grub entry with hugepages.

Hello everyone,
I am using fedora 16, i want to Add additional Grub entry with hugepages enabled permanently can u tell me how can i add? and wher can i add?

--
Thanks & Regards,
ANAND

A message that is not in the archive (sent off-list or not yet received): FA09AAB07F084C4DA208D537E2734D2C374A2752-NNgA2WnScMOiAffOGbnezLfspsVTdybXVpNB7YpNyf8@public.gmane.org

#6 lore raw
Quoted 14 lines · Jerry

Hi,

Here is an example to enable both 1G and 2M in kernel parameters.

default_hugepagesz=1G hugepagesz=1G hugepages=8 hugepagesz=2M hugepages=512

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Anand S Angadi
Sent: Monday, September 1, 2014 4:44 PM
To: [email protected]
Subject: [dpdk-dev] reg : adding grub entry with hugepages.

Quoted 11 lines

Hello everyone,
I am using fedora 16, i want to Add additional Grub entry with hugepages enabled permanently can u tell me how can i add? and wher can i add?

--
Thanks & Regards,
ANAND

Hi Zhang,
Thank you for your reply, now I am using same thing but i want it permanently to add. means after every time reboot i have write again it, please help me.

Signature · 2 lines
Thanks & Regards,
ANAND

A message that is not in the archive (sent off-list or not yet received): 54043630.6020407-U1VcRrJwn5T8CqgTAz400NBPR1lH4CV8@public.gmane.org

#8 lore raw
Quoted 3 lines · Anand S Angadi
Quoted 3 lines

Hello everyone,
I am using fedora 16, i want to Add additional Grub entry with hugepages enabled permanently can u tell me how can i add? and wher can i add?

Try /etc/default/grub .

A message that is not in the archive (sent off-list or not yet received): [email protected]

#10 lore raw
Quoted 7 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Matthew Hall
Sent: Monday, September 01, 2014 10:06 AM
To: Anand S Angadi
Cc: [email protected]
Subject: Re: [dpdk-dev] reg : adding grub entry with hugepages.

Quoted 7 lines
Quoted 2 lines · Anand S Angadi
Quoted 2 lines

Hello everyone,
I am using fedora 16, i want to Add additional Grub entry with hugepages

enabled permanently can u tell me how can i add?

Quoted 1 line
Quoted 1 line

and wher can i add?

Try /etc/default/grub .

... and use grub2-mkconfig to regenerate the grub configuration afterwards.

#11 lore raw
In reply to a message not in the archive
Quoted 6 lines · Matthew Hall
Quoted 3 lines · Anand S Angadi
Quoted 3 lines

Hello everyone,
I am using fedora 16, i want to Add additional Grub entry with hugepages enabled permanently can u tell me how can i add? and wher can i add?

Try /etc/default/grub .

Hi Matthew,
I added "default_hugepagesz=2M hugepagesz=2M hugepages=1024" and did reboot.
after i did cat /proc/meminfo but i am not getting Hugepages_total 1024. the output is as mentioned bellow.

$cat /proc/meminfo
:
:
:

HardwareCorrupted:     0 kB
AnonHugePages:     43008 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:       12288 kB
DirectMap2M:     4024320 kB

$

Signature · 2 lines
Thanks & Regards,
ANAND

A message that is not in the archive (sent off-list or not yet received): 54043BCB.1040304-U1VcRrJwn5T8CqgTAz400NBPR1lH4CV8@public.gmane.org

#13 lore raw
Quoted 34 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Anand S Angadi
Sent: Monday, September 1, 2014 5:27 PM
To: Matthew Hall
Cc: [email protected]
Subject: Re: [dpdk-dev] reg : adding grub entry with hugepages.

Quoted 3 lines · Matthew Hall
Quoted 2 lines · Anand S Angadi
Quoted 2 lines

Hello everyone,
I am using fedora 16, i want to Add additional Grub entry with hugepages

enabled permanently can u tell me how can i add?

Quoted 3 lines
Quoted 1 line
Quoted 1 line

and wher can i add?

Try /etc/default/grub .

Hi Matthew,
I added "default_hugepagesz=2M hugepagesz=2M hugepages=1024" and did reboot.
after i did cat /proc/meminfo but i am not getting Hugepages_total 1024. the output is as mentioned bellow.

$cat /proc/meminfo
:
:
:

HardwareCorrupted:     0 kB
AnonHugePages:     43008 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:       12288 kB
DirectMap2M:     4024320 kB
Quoted 2 lines

$

Make sure current kernel parameters is correct by below command. $cat /proc/cmdline

#14 lore raw
In reply to a message not in the archive
Quoted 12 lines
Quoted 2 lines

Hello everyone,
I am using fedora 16, i want to Add additional Grub entry with hugepages

enabled permanently can u tell me how can i add?

Quoted 9 lines

and wher can i add?

--
Thanks & Regards,
ANAND

Quoted 3 lines

Hi Zhang,
Thank you for your reply, now I am using same thing but i want it permanently to add. means after every time reboot i have write again it, please help me.

You may add this parameter in /etc/default/grub

GRUB_CMDLINE_LINUX="default_hugepagesz=1G hugepagesz=1G hugepages=8 hugepagesz=2M hugepages=512"

A message that is not in the archive (sent off-list or not yet received): FA09AAB07F084C4DA208D537E2734D2C374A28BA-NNgA2WnScMOiAffOGbnezLfspsVTdybXVpNB7YpNyf8@public.gmane.org

#16 lore raw
Quoted 21 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Zhang, Jerry
Sent: Monday, September 01, 2014 10:37 AM
To: Anand S Angadi
Cc: [email protected]
Subject: Re: [dpdk-dev] reg : adding grub entry with hugepages.

Quoted 12 lines
Quoted 2 lines

Hello everyone,
I am using fedora 16, i want to Add additional Grub entry with hugepages

enabled permanently can u tell me how can i add?

Quoted 9 lines

and wher can i add?

--
Thanks & Regards,
ANAND

Quoted 2 lines

Hi Zhang,
Thank you for your reply, now I am using same thing but i want it permanently

Quoted 7 lines

to

Quoted 1 line

add. means after every time reboot i have write again it, please help me.

You may add this parameter in /etc/default/grub

GRUB_CMDLINE_LINUX="default_hugepagesz=1G hugepagesz=1G hugepages=8 hugepagesz=2M hugepages=512"

Again, please note that after changing the grub defaults you still need to regenerate the grub configuration file, which is generally in /boot (on fedora 20 it's in /boot/grub2/grub.cfg). This is the file actually read at boot time by grub.

/Bruce

#17 lore raw
In reply to a message not in the archive
Quoted 6 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Zhang, Jerry
Sent: Monday, September 01, 2014 9:52 AM
To: Anand S Angadi; [email protected]
Subject: Re: [dpdk-dev] reg : adding grub entry with hugepages.

Quoted 6 lines

Hi,

Here is an example to enable both 1G and 2M in kernel parameters.

default_hugepagesz=1G hugepagesz=1G hugepages=8 hugepagesz=2M hugepages=512

Just FYI: the default_hugepagesz part is not necessary, so I'd generally leave it out and let the system default be 2MB as normal. You can always get a hugetlbfs mount of a particular hugepage size by passing the pagesize= parameter when doing the mount.

/Bruce