All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kumar amit mehta <gmate.amit@gmail.com>
To: linux-lvm@redhat.com
Subject: [linux-lvm] Query on PE size
Date: Tue, 4 Jun 2013 22:07:28 -0400	[thread overview]
Message-ID: <20130605020728.GA9658@gmail.com> (raw)

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 ?

-Amit

             reply	other threads:[~2013-06-05  7:42 UTC|newest]

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

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=20130605020728.GA9658@gmail.com \
    --to=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.