LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-14-2011, 11:21 AM   #1
thamsivan
LQ Newbie
 
Registered: Mar 2010
Posts: 3

Rep: Reputation: 0
How to get 16k block size in 2.6.38.8 kernel (CentOS x86 64) ?


Hi All,

I want to know how to get 16k Block size while creating XFS on 2.6.38.8 Kernel
(CentOS)

I realised that one would require 16k pagesize and for that i need to recompile the kernel.
But I'm using x86_64 arch. CPU

So, is there a way around ?
Is there a way to set 16k page size in x8664 and inturn set 16k block size


Note:
I'm creating file system on SSD

-----------------------
Commands that I tried-
Code:
[root@test]# mkfs.xfs -b size=16k /dev/dm-3
meta-data=/dev/dm-3              isize=256    agcount=4, agsize=4341756 blks
         =                       sectsz=512   attr=2
data     =                       bsize=16384  blocks=17367023, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=16384  ascii-ci=0
log      =internal log           bsize=16384  blocks=8479, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=16384  blocks=0, rtextents=0
[root@test]# mount /dev/dm-3 /mnt/dm-disk/ -o sunit=128,swidth=256
mount: Function not implemented

tail var log messg
Code:
Dec 15 04:15:20 test kernel: XFS: SB validate failed
Dec 15 04:15:20 test kernel: XFS: file system with blocksize 16384 bytes
Dec 15 04:15:20 test kernel: XFS: only pagesize (4096) or less will currently work.

Last edited by thamsivan; 12-14-2011 at 11:23 AM.
 
Old 12-14-2011, 02:01 PM   #2
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
I see the error message you quoted, and its meaning does appear to be clear:
Code:
XFS: only pagesize (4096) or less will currently work.
But ..

Quote:
Originally Posted by thamsivan View Post
I realised that one would require 16k pagesize and for that i need to recompile the kernel.
But I'm using x86_64 arch. CPU

So, is there a way around ?
Is there a way to set 16k page size in x8664
No. 16KB page size is not supported by x86-64 hardware.

x86-64 hardware supports 2048KB pagesize, but I'm pretty sure you don't want that, and I'd be surprised if the Linux kernel has a build-time option to support that if you do want it.

No page size between 4KB and 2048KB is supported.

Last edited by johnsfine; 12-14-2011 at 02:04 PM.
 
Old 12-15-2011, 07:56 AM   #3
thamsivan
LQ Newbie
 
Registered: Mar 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for the reply johnsfine.

I safely assume that 16k page size is not supported in x86_64.

Now,
a. Does it in anyway prevent me from having 16k block size on XFS filesystem ?
b. Would it help me resolve the issue if I use a IA64 server?
c. Is 16k block size on XFS supported in Linux at all ??

Last edited by thamsivan; 12-15-2011 at 07:58 AM.
 
Old 12-15-2011, 08:17 AM   #4
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
I have no idea about block size in XFS. The error message you quoted is more information than I ever knew on that topic. I was only commenting on page size in x86-64.

Hopefully someone who knows about XFS will reply.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
determine my block size / calculate blks to bytes / centos 5.6 needsleep Linux - Newbie 1 06-25-2011 08:10 PM
Increasing stack size to 16K on x86_64 2.6.18 kernel alonp Linux - Kernel 3 02-17-2011 02:47 PM
driverloader installation problem of 16K stack size wahaha Fedora 1 08-06-2006 02:02 AM
upgrading kernel stack from 4k to 16K wahaha Linux - Newbie 6 07-16-2006 10:52 AM
16K stack size in 2.6..xx quietguy47 Linux - Kernel 3 04-24-2006 01:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration