IO size for write()

I am playing around trying to adjust IO sizes to see broken IO and to adjust for large IO size in my app..
truss data of my IO
480: open("/mnt/file", O_RDWR|O_CREAT|O_TRUNC, 037777777777) = 3
480: write(3, "\0\0\0\0\0\0\0\0\0\0\0\0".., 4194304) = 4194304
480: write(3, "\0\0\0\0\0\0\0\0\0\0\0\0".., 4194304) = 4194304
62.059582 16.185079 480 1 0x3000338ecc0 0 strategy device: 584115552256 block: 60396848 size: 1048576 buf: 0x30000a78340 flags: 34088209
306.154426 17.819569 480 1 0x3000338ecc0 0 strategy device: 584115552256 block: 60398896 size: 1048576 buf: 0x300035dcc00 flags: 34088209
test C code:
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
main(int argc, char **argv[] ) {
int fd;
int a;
long linesize, size, size2;
char *writeline;
char *file;
file = malloc(512);
if ( argc < 2 ) {
printf("Syntax Error: test_io <filename>\n");
snprintf(file, 512, "%s", argv[1]);
printf("press ^C to stop\n");
writeline=malloc((2097152*2));
bzero(writeline, (2097152*2));
if ( (fd = open(file, O_RDWR| O_CREAT|O_TRUNC)) == -1 ) {
printf("error opening testfile\n");
exit(1);
for ( a = 0 ; (size = write(fd, writeline, (2097152*2))) != -1 ; a++) {
if ( a == 100 ) {
close(fd);
if ( (fd = open("file", O_RDWR| O_CREAT|O_TRUNC)) == -1 ) {
printf("error opening testfile\n");
exit(1);
kernel config:
set maxphys=2097152
ssd_max.... is set to the same...
I do not use the md drivers so md_maxphys is not in play...
any ideas?

the ssd is both sd and ssd.. inside the sd.conf and inside the /etc/system...
the following below is a tnf report of the IO size of my process to show the kernel is breaking the IO down.
sorry i wasn't clear on this part..
62.059582 16.185079 480 1 0x3000338ecc0 0 strategy device: 584115552256 block: 60396848 size: 1048576 buf: 0x30000a78340 flags: 34088209
306.154426 17.819569 480 1 0x3000338ecc0 0 strategy device: 584115552256 block: 60398896 size: 1048576 buf: 0x300035dcc00 flags: 34088209

Similar Messages

  • How to set the size for height of iView tray?

    Hi,
    I have created a ABAP webdynpro component and integrated this comp with iView. Then i integrated iView into Page in portal. That is working fine.
    But the size of tray/window which is displayed in the page is very small.
    How to increase the height of that Tray/window/iView containing my component?

    Hi,
    By changing the maximum automatic height and Minimum automatic height property of the iview you can set the size for height of your iview.
    to do this follow the setps:
    goto content administrator -> portal content -> your folder where you created your iview or directly to your iview -> right click -> open -> object,
    and now in property category choose appearance-Size from the drop down menu and set the above properties to your required height.
    if you want the end user to modify this property set the property to read/write .
    *********please reward points if the information is helpful to you********************

  • Maximum size for an HttpRequest? Set Content-Length?

    Hi, I'm managing to get small strings sent from my applet to my servlet, but when I try anything bigger, I get problems. Oddly enough, the larger object can get sent to my applet from my servlet without any issues.
    Can anyone tell me if there is a maximum size for sending responses?
    Or, if I have to set the content-length property in my applet before I send my data, how do I get the size of my object so I can set it?
    thanks for any advice any of you might have

    Thanks for the pointers.
    BalusC, at first I was trying to write my object without sending it through a byteStream first (hence the q) :), tried it that way too and wouldn't work.
    I finally figured out that it wasn't the code that was the problem, but it was an upload issue (server specific). Have changed the code to sending one line of data at a time since I was converting my object to an output file in the servlet anyway. Not the best solution but it works :)
    Thanks again

  • Optimal Block Size for Xserve's RAID hosting Final Cut Server

    What would be the optimal block size for the software RAID on the machine that will be hosting Final Cut Server? The default is 36K. Since FCS is essentially a database, would be the optimal settings? Any glimpse what data size chunks FCS write to the disk?

    Actually I meant the block size for the internal startup volume where FCS is installed, not Xsan volumes. As to optimal settings for Xsan volumes it really depends on the type of the data you store on Xsan, and if it is primarily video, what format: SD, HD.

  • Stripe size for scatch disk array

    I am building a CS5/64 workstation running on Win 7/64 that will be used to edit 1-4Gb images. The scratch disks will consist of a RAID 0 array using 3-4 WD600Gb 10K drives shortstroked on an Areca card.
    What is the best stripe size for a 3-4 disk array for large images? Does Adobe publish how they R/W to the scratch disk, size of block,etc?
    Larry

    Right click on the root of your C: drive, and choose Properties.
    Click the Hardware tab, select the drive (array) you'd like to set advanced caching on, and click the [Properties] button.
    Click the Policies tab, and note the setting of the [ ] Turn off Windows write-cache buffer flushing on the device.  This may not be available, depending on the drivers.
    Note, specifically, that this feature can cause quite a lot of disk data to end up in your RAM for a while, if an application gets significantly ahead of the drive's ability to write data.  This is where the warning about having good battery backup comes in.  I'll add my own comment:  Your system should be very stable as well.  You don't want it crashing when a lot of writes are pending.
    -Noel

  • Adjusting chunk size for virtual harddisks

    My data partition with VHD images is constantly run out of space. So I decided to repartition the drive in the next days. While doing that, I will redo most or all images files to sparsify the data inside the guest. There is one issue:
    To reduce the amount of space needed on the host I want to reduce the "allocation chunk size" for (dynamically expanding/ sparse) virtual harddisks. Its my understanding that if a guest is writing to a filesystem block the host does actually allocate
    more than the "guest block size". For example, if a guest ext3 filesystem has blocksize 4K and it writes to block #123, the host will not just allocate space for this singe 4K block at offset #123. It may allocate a much larger chunk in case the
    guest attempts also to write ti #124. And so on.
    A few months ago I read somewhere that this "allocation chunk size" can be adjusted. Either when the VHD image is created, or globally for all images. It was done with some powershell cmd AFAIK.
    For my purpose I want to reduce it to a minimum, even if it comes with some performance cost.
    How can this property be adjusted?
    Thanks.
    Olaf

    Hi Olaf,
    It seems that it is beyond my ability to explain this .
    But I have read this article mentioned the effect between VHD and physical disk :
    http://support.microsoft.com/kb/2515143
    If I understand correctly , the physical disk and virtual disk only have two type of "sector" size (512 and 4K , vhd only support 512 )As for the "allocation chunk size" that you mentioned , I think it determined by different file system
    (such as NTFS and ext3 ).
    Maybe the powershell cmd you mentioned is " set-vhd " , it has a parameter " physicalsectorsizetype " only with two value 512 and 4096 .
    For details please refer to the following link:
    http://technet.microsoft.com/en-us/library/hh848561.aspx
    Hope this hlepsBest Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • In sequence for write/read, value of wait time?

    I made a sequence for write then read on a serial port.
    Sometimes, the read string is not the entire one.
    I put some wait time of 500ms in write sequence and wait time of 500ms in read sequence. Could it be the problem ?Is it possible to change the buffer size ?

    Hi,
    The buffer size is limited by the port itself. Consequently there really is no way to increase its size. Are you using VISA or the old serial VI's? One thing you may want to try is making your read time half the time of the write sequence. Also make sure that flow cotrol is working. With flow ctrl, you should never lose any information.
    Hope this helps out.
    Best Regards,
    Aaron K.
    Application Engineer
    National Instruments

  • SQL Server NTFS allocation unit size for SSD disk

    Hi,
    I have read that the recommended NTFS allocation unit size for SQL Server generally is 64 kb since data pages are 8 kb and SQL Server usually reads pages in extents which are 8 pages = 64 kb.
    Wanted to check if this is true also for SSD disks or if it only applies to spinning disks?
    Also would it make more sense to use an 8 kb size if wanting to optimize the writes rather than reads?
    Please provide some additional info or reference instead of just a yes or no :)
    Thanks!

    Ok thanks for clarifying that.
    I did a test using SQLIO comparing 4kb with 64kb when using 8kb vs 64kb writes/reads.
    In my scenario it seems it doesnt matter if using 4kb or 64kb.
    Here are my results expressed as how much higher the values were for 64kb vs 4kb.
    Access type
    IOps
    MB/sec
    Min latency (ms)
    Avg latency (ms)
    Max latency (ms)
    8kb random write
    -2,61%
    -2,46%
    0,00%
    0,00%
    60,00%
    64kb random write
    -2,52%
    -2,49%
    0,00%
    0,00%
    -2,94%
    8kb random read
    0,30%
    0,67%
    0,00%
    0,00%
    -57,14%
    64kb random read
    0,06%
    0,23%
    0,00%
    0,00%
    44,00%
    8kb sequential write
    -0,15%
    -0,36%
    0,00%
    0,00%
    15,38%
    64kb squential write
    0,41%
    0,57%
    0,00%
    0,00%
    6,25%
    8kb sequential read
    0,17%
    0,33%
    0,00%
    0,00%
    0,00%
    64kb squential read
    0,26%
    0,23%
    0,00%
    0,00%
    -15,79%
    For anyone interested this test was done on Intel S3700 200gb on PERC H310 controller and each test was run for 6 minutes.

  • Force Logical Block size for HDD pulled from external enclourse

    So I pulled a 3tb hitachi drive from an external enclourse, and the usb-to-sata board in the enclourse forced a logical sector size of 4K for the drive. But connecting directly to the drive exposes the logical sector size to 512 bytes. Resulting in me being unable to mount the partition. So what I am asking is, is there a way to force the logical sector size for a drive to be different than the drive exposes or am I going to have to move everything off the drive and reformat it?
    The enclourse in question:
    http://www.newegg.com/Product/Product.a … 6822145510
    Direct:
    [73828.076447] sd 0:0:1:2: [sdl] Synchronizing SCSI cache
    [73838.912744] scsi 0:0:1:2: Direct-Access Hitachi HDS723030ALA640 R001 PQ: 0 ANSI: 5
    [73838.912889] sd 0:0:1:2: [sdo] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB)
    [73838.912892] sd 0:0:1:2: Attached scsi generic sg12 type 0
    [73838.912995] sd 0:0:1:2: [sdo] Write Protect is off
    [73838.912999] sd 0:0:1:2: [sdo] Mode Sense: cb 00 00 08
    [73838.913042] sd 0:0:1:2: [sdo] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
    [73838.949343] sdo: sdo1
    [73838.949614] sd 0:0:1:2: [sdo] Attached SCSI disk
    USB:
    Mar 5 18:52:35 localhost kernel: [ 4.711438] sd 8:0:0:0: [sdl] 732566016 4096-byte logical blocks: (3.00 TB/2.72 TiB)
    Mar 5 18:52:35 localhost kernel: [ 4.712191] sd 8:0:0:0: [sdl] Write Protect is off
    Mar 5 18:52:35 localhost kernel: [ 4.712193] sd 8:0:0:0: [sdl] Mode Sense: 4b 00 10 08
    Mar 5 18:52:35 localhost kernel: [ 4.712938] sd 8:0:0:0: [sdl] No Caching mode page present
    Mar 5 18:52:35 localhost kernel: [ 4.713978] sd 8:0:0:0: [sdl] Assuming drive cache: write through
    Mar 5 18:52:35 localhost kernel: [ 4.714720] sd 8:0:0:0: [sdl] 732566016 4096-byte logical blocks: (3.00 TB/2.72 TiB)
    Mar 5 18:52:35 localhost kernel: [ 4.716186] sd 8:0:0:0: [sdl] No Caching mode page present
    Mar 5 18:52:35 localhost kernel: [ 4.717215] sd 8:0:0:0: [sdl] Assuming drive cache: write through
    Mar 5 18:52:35 localhost kernel: [ 4.735573] sdl: sdl1
    Mar 5 18:52:35 localhost kernel: [ 4.736557] sd 8:0:0:0: [sdl] 732566016 4096-byte logical blocks: (3.00 TB/2.72 TiB)
    Mar 5 18:52:35 localhost kernel: [ 4.738058] sd 8:0:0:0: [sdl] No Caching mode page present
    Mar 5 18:52:35 localhost kernel: [ 4.739085] sd 8:0:0:0: [sdl] Assuming drive cache: write through
    Mar 5 18:52:35 localhost kernel: [ 4.740238] sd 8:0:0:0: [sdl] Attached SCSI disk

    Hi ebrian,
    You can't perform a migration from Linux to Windows in that manner with 9i.The plan can be changed to migrate from 9.2.0.4 to 10g and than move from 32-bit Linux to 32-bit Windows.
    It should not matter the end result for the OP is the same 10g on 32 bit windows.
    It just depends on what technoly the OP wants to use (export/import or rman convert).
    Regards,
    Tycho

  • Splash Screen Size for Mobile

    Hello:
    Anyone knows the suggested size for a mobile splash screen. I am experimenting development using "Burrito".
    Thanks for any help.

    hi
    canvas.getWidth() for getting width of the screen.
    canvas.getHeight() for height.
    but u have to sure that if u are using canvas.setFullScreenMode(true) for using fullscreen (also command area) then write this getwidth() and getHeight() after writing setFullScreenMode()
    Note : there is some devices like motorola a1000 and e1000 like not giving actual screen size if u are using setFullScreenSize(true) , they are giving only actual screen size (without command area).
    hope u get the answer from this ..
    regards
    Akash kumar
    Indiagames Ltd
    India.
    [email protected]

  • How do you specify a minimum font size for incoming mail?

    Is there a way to specify a minimum font size for incoming mail messages? Mail I get from others is almost unreadable and I always have to manually (apple +) increase the size.
    As a test, a friend on a PC (most mail I get comes from Windows) kept increasing the size he sent me, but when I received it there was no change in size on my end.
    I can't find anything in Mail's menus and preferences to change this behavior.
    Mail 2.07; OS 10.4.6.
    Thanks,
    Cathy

    if i had the problem then i'd make a backup copy of
    my ~/library/preferences/com.appple.mail.plist file,
    open the original in property list editor, look for
    any likely elements that have small or negative font
    sizes and set them to, say, 12, save the changes and
    see if that helped
    Found the file; couldn't open it (tried Text Edit?) to make any changes.
    You can use the following trick to force Mail to
    always use a larger minimum font size on received
    messages - some HTML messages might not look exactly
    as intended but at least you can now read them:
    1. Quit Mail
    2. Open the Terminal
    (/Applications/Utilities/Terminal) and type in the
    following:
    defaults write com.apple.mail
    MinimumHTMLFontSize 13
    3. Restart Mail.app and your HTML messages are
    readable.
    Of course you can set the point size to whatever you
    like.
    Found file; was not comfortable inputing text as this simple task did not behave properly.
    PC friend said other Mac user reported this same anomally with receiving small text from him. I have over a dozen different PC users that I correspond with where I have this problem. It seems to be on the Mac end.
    -Cathy

  • Set Maximum size for a subpanel created with splitter bars in LV8

    Does anyone know how to set the Maximum size for a subpanel created with asplitter bar? If I show one cluster in the subpanel and use the scroll bar to scroll, I can see more (blank) area than I want. I just want the user to be able to scroll a cluster within a subpanel while the cluster is larger than the view area of the subpanel. I don't want to let the user scroll outside the cluster.
    Ravi Beniwal

    I apologize for the mixup in terminology. Please read Pane wherever the word Subpanel was used.
    Please see the attached VI for a description of my problem.
    I would really appreciate any help with this.
    Ravi Beniwal
    Attachments:
    Pane Scrolling Problem.vi ‏10 KB

  • How does one change the font size for folders and/or file lists in the Bookmarks Library?

    How does one change the font size for folders and/or file lists in the '''Bookmarks''' Library?
    Since the upgrade to version 9.0.1 of Firefox, the Bookmarks feature changes are confusing me. They seem to be confusing themselves as well. The list of bookmarks has changed. The font size is so small that my aging eyes cannot read it without fogging the screen with my breath. Some folders are out of alphabetical order (where I know they were previously good), and some are missing altogether (folders to which I frequently add references).
    As for missing or deranged files or folders, was there something that I should have done or now need to do to recover those after the upgrade (or before)?
    With regard to font size,
    1. there is no “Edit Bookmarks” or like option to edit the list in this version
    2. the “zoom” option in the “view” list of functions is greyed out when in “Show All Bookmarks” window
    3. expanding the browser window has no effect on font size
    4. “Preferences” settings for font size has no effect in that window either, including advanced settings
    5. “Help” offers none that I can find.
    Can any of you Help?!?

    Maybe this extension helps:
    *Theme Font & Size Changer: https://addons.mozilla.org/firefox/addon/theme-font-size-changer/

  • Limitation on Service size for deploying

    Is there any limitation on Service size for deploying? The size of my service is 5MB approx. and I am not able to migrate it through Catalog deployer as well as Exporting and Importing file.

    There is no limit as such. The only limit imposed depends on the heap allocated for
              the JVM.
              Nitesh wrote:
              > Hi.
              >
              > Is there a limitation on the session size for a clustered environment. i'm not
              > sure whether its true or not. can anyone please clarify. Also is it for the entire
              > session object or per user.
              >
              > Thanks
              >
              > Nitesh
              Rajesh Mirchandani
              Developer Relations Engineer
              BEA Support
              

  • Advice on sequence settings - frame size for VHS video in FCP

    Hello,
    I was hoping that I could get some advice on editing and output for video captured from VHS Tapes to ensure the best quality possible.
    My current workflow to digitize the VHS tapes is:
    VHS signal from JVC S7600u with TBC into ADVC 300 (no de-interlace or other filters set) into a Mac Pro via firewire.  Capture preset in FCP is DV NTSC 48khz.
    Once in FCP - the captured VHS video frame size is 720 X 480, Vid rate is 29.97, pixel aspect is NTSC-CCIR 601 and field dominance is lower (even)
    My questions are:
    If my final destination is for You Tube sharing , are these the best sequence/ frame size settings or should I convert the sequence frame size to 640 X 480, or should I leave at 720 X 480 while working in FCP and then output to Compressor and select the H264 you tube sharing video setting and change the frame size to 640 X 480? 
    Should I de- interlace for internet/youtube destination?
    Should I de-interlace for DVD/TV destination?
    If I want to burn the finished project to DVD and watch the video on a progressive montitor/ TV screen, what would be the best settings/frame size for that?
    If any of you out there have experience with editing vcr/analog video in FCP and have a good workflow to ensure best quality, I would really appreciate  any advice/suggestions.
    Thanks in advance.

    Digitize to 720X480 frame size in FCP. In compressor, your YouTube preset will automatically deinterlace and a square pixel aspect ratio.No deinterlacing for DVD.
    Russ

Maybe you are looking for