Database Block Size Smaller Than Operating System Block Size

Finding that your database block size should be in multiples of your operating system block size is easy...
But what if the reverse of the image below were the case?
What happens when you store an Oracle Data Block that is 2 KB in an 8 KB Operating System Block?  Does it waste 6 KB or are there 4 Oracle Data Blocks stored in 1 Operating System Block?
Is it different if you use ASM?
I'd like to introduce a 2 KB block size into a RAC Exadata environment for a small set of highly transactional tables and indexes to reduce contention on blocks being requested in the Global Cache.  I've witnessed horrendous wait times for a plethora of sessions when a block was highly active.
One index in particular has a column that indicates the "state" of the record, it is a very dense index.  Records will flood in, and then multiple processes will poll, do work, and change the state of the record.  The record eventually reaches a final state and is never updated again.
I know that I can fill up the block with fluff by adjusting the percent free, percent used, and initrans, but that seems like a lazy hack to me and I'd like to do it right if possible.
Any thoughts or wisdom is much appreciated.
"The database requests data in multiples of data blocks, not operating system blocks."
"In contrast, an Oracle block is a logical storage structure whose size and structure are not known to the operating system."
http://docs.oracle.com/cd/E11882_01/server.112/e25789/logical.htm#BABDCGIB

But what if the reverse of the image below were the case?
What happens when you store an Oracle Data Block that is 2 KB in an 8 KB Operating System Block?  Does it waste 6 KB or are there 4 Oracle Data Blocks stored in 1 Operating System Block?
Is it different if you use ASM?
I'd like to introduce a 2 KB block size into a RAC Exadata environment for a small set of highly transactional tables and indexes to reduce contention on blocks being requested in the Global Cache.  I've witnessed horrendous wait times for a plethora of sessions when a block was highly active.
One index in particular has a column that indicates the "state" of the record, it is a very dense index.  Records will flood in, and then multiple processes will poll, do work, and change the state of the record.  The record eventually reaches a final state and is never updated again.
I know that I can fill up the block with fluff by adjusting the percent free, percent used, and initrans, but that seems like a lazy hack to me and I'd like to do it right if possible.
Any thoughts or wisdom is much appreciated.
"The database requests data in multiples of data blocks, not operating system blocks."
"In contrast, an Oracle block is a logical storage structure whose size and structure are not known to the operating system."
http://docs.oracle.com/cd/E11882_01/server.112/e25789/logical.htm#BABDCGIB
You could have answered your own questions if you had just read the top of the page in that doc you posted the link for
>
At the finest level of granularity, Oracle Database stores data in data blocks. One logical data block corresponds to a specific number of bytes of physical disk space, for example, 2 KB. Data blocks are the smallest units of storage that Oracle Database can use or allocate.
An extent is a set of logically contiguous data blocks allocated for storing a specific type of information. In Figure 12-2, the 24 KB extent has 12 data blocks, while the 72 KB extent has 36 data blocks.
>
There isn't any 'wasted' space using 2KB Oracle blocks for 8KB OS blocks. As the doc says Oracle allocates 'extents' and an extent, depending on your space management, is going to be a substantial multiple of blocks. You might typically have extents that are multiples of 64 KB and that would be 8 OS blocks for your example. Yes - it is possible that the very first OS block and the very last block might not map exactly to the Oracle blocks  but for a table of any size that is unlikely to be much of an issue.
The single-block reads used for some index accesses could affect performance since the read of a 2K Oracle block will result in an 8K OS block being read but that 8K block is also likely to be part of the same index.
The thing is though that an index entry that is 'hot' is going to be hot whether the block it is in is 2K or 8K so any 'contention' for that entry will exist regardless of the block size.
You will need to conduct tests using a 2K (or other) block and cache size for your index tablespaces and see which gives you the best results for your access patterns.
You should use the standard block size for ALL tablespaces unless you can substantiate the need for a non-standard size. Indexes and LOB storage are indeed the primary use cases for uses non-standard block sizes for one or more tablespaces. Don't forget that you need to allocate the appropriate buffer cache.

Similar Messages

  • Query on data block and Operating system block

    Hi ,
    Does data base requests data in term's of Data blocks or operating system block's . If data block's , how an data block get accessed the operating system block . what are the advantages over separating the data blocks from the operating system block's . can any one please explain the what happens once the data base requests the data ?
    Thank You

    sybrand_b wrote:
    This place is called 'Oracle Forum' It does not offer the Oracle University curriculum for free, nor does it offer free abstracts of the Oracle Concepts Manual.
    Kindly read the Concepts Manual of your unmentioned version yourself.
    Thank you.
    Sybrand Bakker
    Senior Oracle DBADear Sybrand
    As you said, this place is called Forum. If you know answer, then answer the question. If you know the documentation, then refer to documentation. If you don't know the answer, then don't answer in such rough manner! Just stop. Just don't type anything. Just be polity

  • Physical disk IO size smaller than fragment block filesystem size ?

    Hello,
    in one default UFS filesystem we have 8K block size (bsize) and 1K fragmentsize (fsize). At this scenary I thought all "FileSytem IO" will be 8K (or greater) but never smaller than the fragment size (1K). If a UFS fragment/blocksize is allwasy several ADJACENTS sectors on disk (in a disk with sector=512B), all "physical disk IO" it will allways, like "Filesystem IO", greater than 1K.
    But with dtrace script from DTrace Toolkit (bitesize.d) I can see IO with 512B size.
    ¿What is wrong in my assumptions or what is the explanation?
    Thank you very much in advance!!

    rar wrote:
    Like Jim has indicated me in unix.com forum, That cross-post thread happens to be:
    http://www.unix.com/unix-advanced-expert-users/215823-physical-disk-io-size-smaller-than-fragment-block-filesystem-size.html
    You could have pasted the URL to be polite ...

  • Operating system block size

    what's operating system block size?
    and where can i change it?

    Hi,
    Maybe the following might be helpful;
    Re: How to know the OS block size ?
    Adith

  • Why the flashback log'size smaller than the archived log ?

    hi, all . why the flashback log'size smaller than the archived log ?

    Lonion wrote:
    hi, all . why the flashback log'size smaller than the archived log ?Both are different.
    Flash logs size depends on parameter DB_FLASHBACK_RETENTION_TARGET , how much you want to keep.
    Archive log files is dumped file of Online redo log files, It can be either size of Online redo log file size or less depending on online redo size when switch occurred.
    Some more information:-
    Flashback log files can be created only under the Flash Recovery Area (that must be configured before enabling the Flashback Database functionality). RVWR creates flashback log files into a directory named “FLASHBACK” under FRA. The size of every generated flashback log file is again under Oracle’s control. According to current Oracle environment – during normal database activity flashback log files have size of 8200192 bytes. It is very close value to the current redo log buffer size. The size of a generated flashback log file can differs during shutdown and startup database activities. Flashback log file sizes can differ during high intensive write activity as well.
    Source:- http://dba-blog.blogspot.in/2006/05/flashback-database-feature.html
    Edited by: CKPT on Jun 14, 2012 7:34 PM

  • How do I play a Keynote 09v5.3 slideshow on my iMac at a size smaller than fullscreen?

    How do I play a Keynote09v5.3 slideshow on my iMac at a size smaller than fullscreen?

    Hi Gary
    Thanks for a conclusive answer.
    Regards
    Orchardhouse

  • Why is my "Combined PDF" file size smaller than the original files?

    Hello!
    I am trying to combine two individual PDF files into a single PDF. Each file is 32mb, however when I use acrobat to combine them, the newly created "combined" file is only 19mb. I believe I've taken the necessary steps to ensure no degradation is happening (i.e. selecting Large File Size in the options panel), but I am still puzzled as to how two files can be put together as one and be smaller than the two separate files with out any compression. What am I missing?
    Thanks in advance!

    When you combine a file it does a "Save As" operation.  This re-writes all of the PDF object in the single file and is supposed to clean up the file, whereas the single files may have had multiple saves which when you look at the internals of the PDF file simply add on to the end of the file.  In other words you get a more cleanly written and optimized file that is also saved for Fast Web View.

  • Exported video size smaller than original video size. How do I keep the original size?

    I exporting a video from Adobe Premiere CS6 today, and I noticed the video was about 1/2 times smaller  than the original video I put in. I then uploaded the video on YouTube, and the size was still the same. I tried to change the preset to 1080p 29.97, 1080p 25, etc. and the same with 720p, and 480p, but the size only changed slightly.
    How do I keep the original size after exportation of videos?

    More information needed for someone to help... please click below and provide the requested information
    -Information FAQ http://forums.adobe.com/message/4200840
    Also, exactly what are you editing, and what are your export settings?
    Also, The tutorial list in message #3 http://forums.adobe.com/message/2276578 may help

  • Why ist the printed font size smaller then the choosen font size in pages

    Hi,
    sorry about my english it´s a lot of years agoo i used it.
    since a cuple of months i choosed a mac mini to be used as my favorit pc-system. Now i am using pages to create letters and stuff like greeting cards, posters, flyers and so on.
    In this i´ll find a problem between the choosen font sizes and the printed paper.
    If i choose a font and size like arial 12, and start the print job of the lettert with my Printer (Samsung 3170 MFC or Samsung 315), the size of the printed font is very smaller than the in pages choosen font (seen on the screen.
    If i use MS offce it is the right size on the screen as on the printet paper.
    What do i wrong?
    Greetings from Hamburg Germany

    Maybe because your document isn't displayed at 100% but at 120% on your screen.
    On my iMac, to get the same size on screen and on paper, the zoom factor must be 142% which can't be done thru the available interface.
    Yvan KOENIG (VALLAURIS, France) dimanche 3 juillet 2011 12:43:09
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Software Update File Size Different than Apple Downloads File Size

    Background:
    I am running software update and it retrieves the update for "MacBook, MacBook Pro Software update 1.1" File size is listed as 768K. When I go to the Apple Downloads page for this update, the file size is 979K.
    Download ID is 16618 and URl is http://www.apple.com/downloads/macosx/apple/macosx_updates/macbookmacbookprosoft wareupdate11.html
    Question:
    Is this discrepancy normal based on the way that Software Update calculates file size or should I be concerned? There is no hash to confirm integrity of the file.

    File size, and the volume of space it takes up are 2 different things. Space will very from computer to computer. Chances are, the larger the drive the more space it takes up. Reason? The file system (HSF + on macs with Leopard). The file sytem divides the drive into specific number of sections. That number may be 10 M, say. So, even if you have a thumbnail that is 4 kb, it will still require the minimum size of the file system. Make sense? There is a lot of wasted space on very large drives.
    Note: Leopard is set up to use a new file system that apple may soon adopt. It will not use the division method HFS + uses, and so will save a lot of space, if adopted.

  • Backup smaller than my system drive

    yesterday I started time machine for the first time. Did a complete backup of my system drive, a little over 71GB.
    Today, my time machine drive says it only had 69 GB used on it...? How could it be doing incremental backups, but be getting smaller in size?

    That makes sense for two reasons:
    1. sleepimage is 2 GB (not backed up, no choice) and 1 GB of temporary files at each startup (not backed up, no choice)
    2. Backups are made each hour and all but one is deleted at 12 midnight

  • Screen size smaller than 1024x768?

    Hi all,
    I'm working on a project that is being done on 1024x768
    screen size. I don't get to resize the screen as with widescreen
    monitor it gets a bid odd when resized for a non-native resolution.
    So my questions is, do you reckon that there are many computer out
    there with screen res less than 1024x768? The project is going to
    be sent to an target audience in England, medium to large company
    sized. Thanks for your input

    thanks. Went back for a second look and they are indeed the same size. I was thrown off by how the menu in the newest version is structured. Is that new menu style available as an update, or only specific to the new classics?

  • Can a single database be used for two operation system in a single machine

    Hi,
    I have a typical question. My problem is that in my testing machine I have Linux Enterprise(UFS file system) and Windows XP(FAT partition) both installed as dual partitions..
    In Linux I have mounted the Windows XP file system as read write , so I can access the Windows file system from my linux.
    I have Oracle 10g on Windows XP with datafiles in my F:\ location.
    This location F:\ of windows is mounted as /datafile on Linux.
    Now my question is If I install an oracle instance in Linux OS of my system, can I use the same datafiles I am using for my windows?
    Regards
    Vineet

    Hi,
    No, because, as you wrote F:\ of windows... /datafile on Linux, the datafiles directory are committed into the system tablespace. Also, you can see that the absolute same directory is not mentionned as the same way.
    For example for Windows database : select member from v$logfile; will give D:\oracle\oradata\DB1\log\redo01.log
    And into Linux, the same query /oracle/oradata/DB1/log/redo01.log
    There is no automatic translation between the both systems when Oracle start.
    HTH,
    Nicolas.

  • Why Are Lightroom File Sizes Smaller Than Elements Equivalents?

    I have been struggling to get good quality thumbnail sized images at small enough file sizes for a website. The only problem is that the versions I have done through Lightroom via the Web Module using the Flash template, will only allow a maximum width size of 191 pixels, whereas I'm looking to achieve 250 pixels wide. Doing it through Elements image resize box gets me the size I want, but for a decent quality, the file size is much larger. 
    Out of curiosity and for comparison, I made the Elements versions the same dimensions as the Lightroom ones. In order for the file sizes of the Elements ones to come even close and yet not as small as the Lightroom versions, I had to reduce the Jpeg quality to zero. This rendered them unusable.
    I can't understand why two related applications doing exactly the same thing can differ so wildly. Can someone tell me what is going on?

    Hmmm??
    Not To Sure??
    But I will try to find out..
    Keep you posted about that.
    Phillip

  • IPhoto library size smaller than original collection

    I've seen several iphoto library size questions but nothing seems close to my own situation.  If anything, it's mostly the other way around. Apologies if this has already been covered but I've searched long and hard!
    I have my photo collection in two places- an iPhoto library and separately stored in a finder folder called "Photos".  For backup purposes and in case anything goes wrong, I prefer to have them doubled up like this.  My iPhoto library is 7.96GB when viewed in finder, whereas the folder "Photos" is 8.95GB.  The same number of images are in both.  Can anyone shed some light onto why this would be the case?  There are no other items contained in either collection, movies etc., just the same amount of photos in various folders within folders.  Surely the iPhoto library would be at least as big, if not bigger with thumbs, photos modified etc?

    I would expect the iPhoto Library to be significantly bigger than the folder tree so something is not right.
    Are you running a Managed or a Referenced Library?
    A Managed Library, is the default setting, and iPhoto copies files into the iPhoto Library when Importing. The files are then stored in the Library package
    A Referenced Library is when iPhoto is NOT copying the files into the iPhoto Library when importing because you made a change at iPhoto -> Preferences -> Advanced. The files are then stored where ever you put them and not in the Library package. In this scenario you are responsible for the File Management.
    BTW:  Storing the files in a folder tree and iPhoto on the same disk is a waste of space and not a back up. A back up needs to be on a separate disk, at least. The most common problems are disk issues. Such a set up offer no protection whatever from that.
    Regards
    TD

Maybe you are looking for

  • I cannot open all email attachment files(pdf, doc, etc) in Mail on my New IPad.

    I cannot open all email attachment files(pdf, doc, etc) in Mail on my New IPad. I installed all viewer apps but I am not able to click and hold to select the option of viewer apps to open the files. I dont get the "open with" option when I click on t

  • Ipod locking issue

    I have a 5th gen ipod using windows xp. I know I don't have the latest version of itunes but I don't think that should matter. When I tried playing it..nothing happened...just a blank screen. I hooked it up to my pc to charge in case that was the iss

  • Anyone Using Tweenlite?

    Hi, I've been using flash to build small websites and banners, mostly simple stuff, and I've been using tweenlite for my tweening.  What is the general opinion about tweenlite?  Is it a good idea to use it?  I find that it works for what I try to do,

  • My itouch touch screen isnt working.

    one part of my itouch touch screeen isnt working.

  • Does 10.10 break photoshop elements12 ?

    The content aware move tool will not work in elements 12 !