DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] reg : adding grub entry with hugepages.
       [not found] <54040572.5090002@globaledgesoft.com>
@ 2014-09-01  8:44 ` Anand S Angadi
  2014-09-01  8:52   ` Zhang, Jerry
  0 siblings, 1 reply; 10+ messages in thread
From: Anand S Angadi @ 2014-09-01  8:44 UTC (permalink / raw)
  To: dev


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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [dpdk-dev] reg : adding grub entry with hugepages.
  2014-09-01  8:44 ` [dpdk-dev] reg : adding grub entry with hugepages Anand S Angadi
@ 2014-09-01  8:52   ` Zhang, Jerry
  2014-09-01  9:02     ` Anand S Angadi
  2014-09-01  9:22     ` Richardson, Bruce
  0 siblings, 2 replies; 10+ messages in thread
From: Zhang, Jerry @ 2014-09-01  8:52 UTC (permalink / raw)
  To: Anand S Angadi, dev

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:dev-bounces@dpdk.org] On Behalf Of Anand S Angadi
Sent: Monday, September 1, 2014 4:44 PM
To: dev@dpdk.org
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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [dpdk-dev] reg : adding grub entry with hugepages.
  2014-09-01  8:52   ` Zhang, Jerry
@ 2014-09-01  9:02     ` Anand S Angadi
  2014-09-01  9:06       ` Matthew Hall
  2014-09-01  9:36       ` Zhang, Jerry
  2014-09-01  9:22     ` Richardson, Bruce
  1 sibling, 2 replies; 10+ messages in thread
From: Anand S Angadi @ 2014-09-01  9:02 UTC (permalink / raw)
  To: Zhang, Jerry; +Cc: dev

On 09/01/2014 02:22 PM, Zhang, Jerry wrote:
> 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:dev-bounces@dpdk.org] On Behalf Of Anand S Angadi
> Sent: Monday, September 1, 2014 4:44 PM
> To: dev@dpdk.org
> 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
>
>
>
>
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.

-- 
Thanks & Regards,
ANAND

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [dpdk-dev] reg : adding grub entry with hugepages.
  2014-09-01  9:02     ` Anand S Angadi
@ 2014-09-01  9:06       ` Matthew Hall
  2014-09-01  9:19         ` Richardson, Bruce
  2014-09-01  9:26         ` Anand S Angadi
  2014-09-01  9:36       ` Zhang, Jerry
  1 sibling, 2 replies; 10+ messages in thread
From: Matthew Hall @ 2014-09-01  9:06 UTC (permalink / raw)
  To: Anand S Angadi; +Cc: dev

On Mon, Sep 01, 2014 at 02:32:40PM +0530, Anand S Angadi wrote:
> >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 .

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [dpdk-dev] reg : adding grub entry with hugepages.
  2014-09-01  9:06       ` Matthew Hall
@ 2014-09-01  9:19         ` Richardson, Bruce
  2014-09-01  9:26         ` Anand S Angadi
  1 sibling, 0 replies; 10+ messages in thread
From: Richardson, Bruce @ 2014-09-01  9:19 UTC (permalink / raw)
  To: Matthew Hall, Anand S Angadi; +Cc: dev

> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Matthew Hall
> Sent: Monday, September 01, 2014 10:06 AM
> To: Anand S Angadi
> Cc: dev@dpdk.org
> Subject: Re: [dpdk-dev] reg : adding grub entry with hugepages.
> 
> On Mon, Sep 01, 2014 at 02:32:40PM +0530, Anand S Angadi wrote:
> > >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 .

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [dpdk-dev] reg : adding grub entry with hugepages.
  2014-09-01  8:52   ` Zhang, Jerry
  2014-09-01  9:02     ` Anand S Angadi
@ 2014-09-01  9:22     ` Richardson, Bruce
  1 sibling, 0 replies; 10+ messages in thread
From: Richardson, Bruce @ 2014-09-01  9:22 UTC (permalink / raw)
  To: Zhang, Jerry, Anand S Angadi, dev

> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Zhang, Jerry
> Sent: Monday, September 01, 2014 9:52 AM
> To: Anand S Angadi; dev@dpdk.org
> Subject: Re: [dpdk-dev] reg : adding grub entry with hugepages.
> 
> 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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [dpdk-dev] reg : adding grub entry with hugepages.
  2014-09-01  9:06       ` Matthew Hall
  2014-09-01  9:19         ` Richardson, Bruce
@ 2014-09-01  9:26         ` Anand S Angadi
  2014-09-01  9:39           ` Zhang, Jerry
  1 sibling, 1 reply; 10+ messages in thread
From: Anand S Angadi @ 2014-09-01  9:26 UTC (permalink / raw)
  To: Matthew Hall; +Cc: dev

On 09/01/2014 02:36 PM, Matthew Hall wrote:
> On Mon, Sep 01, 2014 at 02:32:40PM +0530, Anand S Angadi wrote:
>>> 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
$

-- 
Thanks & Regards,
ANAND

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [dpdk-dev] reg : adding grub entry with hugepages.
  2014-09-01  9:02     ` Anand S Angadi
  2014-09-01  9:06       ` Matthew Hall
@ 2014-09-01  9:36       ` Zhang, Jerry
  2014-09-01  9:57         ` Richardson, Bruce
  1 sibling, 1 reply; 10+ messages in thread
From: Zhang, Jerry @ 2014-09-01  9:36 UTC (permalink / raw)
  To: Anand S Angadi; +Cc: dev

>> 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.

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

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [dpdk-dev] reg : adding grub entry with hugepages.
  2014-09-01  9:26         ` Anand S Angadi
@ 2014-09-01  9:39           ` Zhang, Jerry
  0 siblings, 0 replies; 10+ messages in thread
From: Zhang, Jerry @ 2014-09-01  9:39 UTC (permalink / raw)
  To: Anand S Angadi, Matthew Hall; +Cc: dev

>-----Original Message-----
>From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Anand S Angadi
>Sent: Monday, September 1, 2014 5:27 PM
>To: Matthew Hall
>Cc: dev@dpdk.org
>Subject: Re: [dpdk-dev] reg : adding grub entry with hugepages.
>
>On 09/01/2014 02:36 PM, Matthew Hall wrote:
>> On Mon, Sep 01, 2014 at 02:32:40PM +0530, Anand S Angadi wrote:
>>>> 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
>$
>

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [dpdk-dev] reg : adding grub entry with hugepages.
  2014-09-01  9:36       ` Zhang, Jerry
@ 2014-09-01  9:57         ` Richardson, Bruce
  0 siblings, 0 replies; 10+ messages in thread
From: Richardson, Bruce @ 2014-09-01  9:57 UTC (permalink / raw)
  To: Zhang, Jerry, Anand S Angadi; +Cc: dev

> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Zhang, Jerry
> Sent: Monday, September 01, 2014 10:37 AM
> To: Anand S Angadi
> Cc: dev@dpdk.org
> Subject: Re: [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
> >>
> >>
> >>
> >>
> >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"

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-09-01  9:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <54040572.5090002@globaledgesoft.com>
2014-09-01  8:44 ` [dpdk-dev] reg : adding grub entry with hugepages Anand S Angadi
2014-09-01  8:52   ` Zhang, Jerry
2014-09-01  9:02     ` Anand S Angadi
2014-09-01  9:06       ` Matthew Hall
2014-09-01  9:19         ` Richardson, Bruce
2014-09-01  9:26         ` Anand S Angadi
2014-09-01  9:39           ` Zhang, Jerry
2014-09-01  9:36       ` Zhang, Jerry
2014-09-01  9:57         ` Richardson, Bruce
2014-09-01  9:22     ` Richardson, Bruce

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).