All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zdenek Kabelac <zkabelac@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Cc: Kumar amit mehta <gmate.amit@gmail.com>
Subject: Re: [linux-lvm] Query on PE size
Date: Thu, 06 Jun 2013 11:37:29 +0200	[thread overview]
Message-ID: <51B05859.5060708@redhat.com> (raw)
In-Reply-To: <20130605020728.GA9658@gmail.com>

Dne 5.6.2013 04:07, Kumar amit mehta napsal(a):
> Hi,
>
> I see that a VG will set the default PE size to 4MiB, i.e.
> 4 * 1024 * 1024 = 4194304
> (Please correct me if I'm wrong)
>
> <snip>
> # pvcreate /dev/vdc1
> # vgcreate testvg /dev/vdc1
> # vgdisplay
> # vgdisplay testvg|grep "PE Size"
>     PE Size               4.00 MiB <----
> <snip>
>
> I see that :
> vgcreate()
>   -->vgcreate_params_set_defaults()
>     -->vp_def->extent_size = DEFAULT_EXTENT_SIZE * 2;
>
> Where DEFAULT_EXTENT_SIZE is #defined to 4096
> <snip from lib/config/defaults.h>
> #define DEFAULT_EXTENT_SIZE 4096        /* In KB */
> <snip from lib/config/defaults.h>
>
> This means that the default extent size being set is 8192, but as mentioned
> earlier,the default extent size as reported by 'vgdisplay' is 4 MiB. So Can
> someone please point me to the place where this conversion of 8192 into 4MiB
> is taking place in the code ?

Variables in the lvm source code which have suffix _size should keep the size 
in 512b block units ->  8192 * 512b block => 4MiB

Zdenek

      reply	other threads:[~2013-06-06  9:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-05  2:07 [linux-lvm] Query on PE size Kumar amit mehta
2013-06-06  9:37 ` Zdenek Kabelac [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51B05859.5060708@redhat.com \
    --to=zkabelac@redhat.com \
    --cc=gmate.amit@gmail.com \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.