Speed it takes to write to disk

I am looking for some T-sql that I can use that will test to see how long it takes to write to disk. I have two disks. G and H. I T-Sql that will tell me which one takes longer to write to. That should be pretty simple right?
Alan

I am looking for some T-sql that I can use that will test to see how long it takes to write to disk. I have two disks. G and H. I T-Sql that will tell me which one takes longer to write to. That should be pretty simple right?
I assume you are interested in the time it takes to write data pages.  This is simple at first glance but you need to consider how the database engine performs writes. 
When you insert, update, or delete data, SQL Server does not immediately write the modified pages to disk.  Instead, data modified only in memory and a record written to the transaction log upon COMMIT or when the log buffer is full.  The
actual writes of modified pages occur asynchronously.  These writes are done by the Lazy Writer and Checkpoint background processes.  You have little control over when those writes occur so it is difficult to measure timing.
Also consider that writes are actually rewrites of existing data pages.  The page to be modified must first be read into memory, where it is modified as described above.  These physical reads are synchronous during query execution and you also
have little control over whether the page is already in memory or not and that will influence query time.
Be aware that transaction log writes are mostly sequential and are on the critical path for performance of insert/update/delete queries.  Data pages are mostly random and therefore take much longer on spinning media due to seek time.  Data file
write performance helps the background processes write dirty pages to disk faster, allowing buffer cache to be reused sooner.
That being said, T-SQL is not the write tool to measure hardware performance and you need to consider what types of write I/O you want to measure (sequential versus random).  I suggest you use a tool like SQLIO for this task.  See
http://www.microsoft.com/en-us/download/details.aspx?id=20163
Dan Guzman, SQL Server MVP, http://www.dbdelta.com

Similar Messages

  • "Can't Read Or Write to disk" Video Won't Transfer To Ipod

    I have transfered videos to my ipod in the past but I have two tv shows from the Itunes story that won't transfer.
    They are in the correct mpeg 4 whatever format. My itunes is the most resent version, but for some reason I keep getting the same error.
    "Cannot Read Or Write To Disk".
    HELP??!!
      Windows XP  

    I've got this problem too. My 5g iPod 30gig syncs after about 3 minutes with iTunes then after loading songs and videos after 10 minutes i get the same message your getting - "Can't Read Or Write to disk". I think theres some kind of USB2 conflict or something. All my other USB devices work fine. All my drivers and software is up-to-date.

  • Ipod will sync up once then says cannot read or write to disk.

    Is this normal? The IPOD shows up in Itunes after the first sync but when I go and try to update the ipod again it says it cannot read or write to disk. Tech support says this is normal but it does not make any sense as the IPOD still shows up in Itunes.

    the IPOd will sync up when I fiorst plug it in. the problem is when it is finished, Itunes says ipod update complete you can disconnect. I leave it connected, and if I try to update the ipod again after I download something or whatever into Itunes it comes back with the cannot read from or write to disk. I can unplug it and plug it back in and it work sfine. There is something with the software I guess that is not staying connected with the hardware after the first sync.

  • Music Downloads - unable to read or write to disk.

    Hi, I'm new to iPods, and when I try to download music
    I get the message Unable to update iPod, unable to read / write to disk....
    Originally I had no problems now unable to download more than one song at a time, and only the manually... it's taking ages...
    Does anyone have any ideas? I've restored, reset everything and downloaded the latest software....

    Hi,
    Unless you are using OCR (optical character recognition) software when doing the scan, the result of scanning a document is only an image, a picture of the document. Since you only have a picture of the document at this point, the only thing that you can do with it in Word is to insert the image into the document. As an image, you won't be able to edit or search the text that appears in the image. You need to run OCR software to examine the image and convert the images of the characters into editable text. If you are already using OCR software, reply back and let me know which application you are using, and I'll try to help you further.
    Hope this helps,
    Ken

  • "Can't read from or write to disk...." iPod error

    I recently switched from my old PowerBook G4 (running Leopard 10.5.2) to a newer MacBook Pro (running Leopard 10.5.5). I migrated my account and permissions from the PB to the MacBook Pro, and everything is working just fine except for iTunes (version 8.0.2) and my older 160 GB iPod Classic (running 1.1.2).
    NOTE: THE VERSION OF iTunes ON THE PB WAS VERSION 8.0.1.
    Since the migration, I've been getting this "can't read from or write to disk..." error whenever I attempt to sync my iPod to iTunes. Previously, I'd never had any problems. I have tried to restore the iPod using iTunes - didn't work. I have tried different USB to dock connector cables - didn't work. I have even tried completely re-formatting the iPod using Disk Utility - didn't work. Everytime I begin syncing the iPod, it starts out just fine. At varying degrees of completion it ALWAYS fails with the same error.
    I had an idea. I tried syncing the iPod to a different computer - my G5 4 x 2.5 GHz (running Leopard 10.5.5) with iTunes (version 8.0.2). I still got the same error. I haven't dropped it, submerged it in water or done anything to it that would otherwise compromise its functionality. So, I'm at a loss.
    PLEASE! PLEASE! PLEASE!
    Does anyone have any other suggestions? - OTHER THAN BUYING A NEW IPOD

    UPDATE:
    OK, after the visit to my Genius Bar; I thought of a variable that wasn't previously considered. Because their transfer of media was successful without the slightest hitch, I had to figure out something else.
    Everytime I had tried to sync the iPod with my various Macs, I was using the same process. Since all of my music and movies "live" on an external 500 GB drive, I was attempting to use that same drive whenever I would try to sync. It occurred to me that possibly the failing was in the drive and not the iPod.
    I have part of that library on a Power Mac G4 867 DP (running 10.4.9). I updated the iTunes on that machine to 8.0.2, connected the iPod and made a successful transfer of a large amount of media!
    My only problem now is that I can't figure out how to get the 500 GB drive to stop hanging on transfer and update of my Genius information. The drive just completely stalls and I get the spinning wheel from iTunes and the application ceases to respond. When I force quit iTunes, the drive recovers fine. I don't have any problems transferring data to and from it and Disk Utility reports that the drive is healthy.
    I have tried re-installing iTunes on all affected Macs - didn't help. I believe my problem may exist in the iTunes Library file or in the associated .xml document. My only concern is that if I do a completely fresh install of iTunes where those files would be re-created, I would lose all of my play and ratings data as well as the information about when my files were added. On a related note, when playing the music from this drive through iTunes. I don't have any issues at all.
    ANY SUGGESTIONS?

  • What does it take to write script/plugin for Motion?

    Hi,
    I have no clue about this but I was wondering what would it take to write a plugin/script for M5? I'm thinking about something like "Ease & Wizz", "Split Layers", or "Rubberize it" like for after effects ?
    Thanks

    Well, much of that is already done in Motion with various parameter and object behaviors.  But what can and can not be done in FxPlug, well, I'd find a developer and ask them.  They're all pretty nice about sharing information, just not company secrets.  I'm not a programmer.  I know "of" FxPlug", I know the basic structure, but I'm far from a programer.  If you learned FxPlug, you'd probably also want to dive into Quartz Composer, too.  Tons of stuff in FCPX, Motion, and other apps, are built with Quartz Composer.  I know just enough of QC to destroy whatever it is I'm trying to build, not enough to do anything real with.  They're both relatively easy if you are dedicated enough.

  • The computer doesnt take Mac OS X disk 2 when installing tiger

    the computer doesnt take Mac OS X disk 2 when installing tiger

    Is it showing error message during GarageBand install?
    If so, I had this type of problem, and solved it by restating computer in Safe Mode (to enter Safe Mode you should hold "Shift" button on start-up while Apple logo appears).
    Only trouble for me - my MacBook display was so dim in Safe Mode, that was a problem to see anything on the screen. But still, there are only few buttons to click during 2nd disk setup and I guess that "dark safe mode screen" could be only Mac laptop problem.

  • Can't Write to Disk Error (-69)

    I have windows XP, and an iPod 30gb photo. OUt of the blue it stopped copying files to the iPod and gives the message cannot write to disk with the error (-69).
    I have reinstalled both the iPod software and itunes multiple times.
    I formatted my HD and reinstalled windows
    The iPod works on other computers .
    Does anyone know what i should do.
    I have all my music on a USB drive that works fine, and it has been that way for months. I did not install any new software.
    Dell tells me it's the iPod and Apple tells me it's the Dell
    I would appreciate any help
    -dave
    [email protected]

    After formatting my HD, restarting windows, spending hours on dell and apple tech support, buying a firewire card, i figure it out.
    I had a bad file in my library (it was a podcast).
    once i deleted it, everything was fine.
    see if you can see at what song you get that error and delete that song.. good luck.

  • Unknown Error (-69) Unable to write to disk

    Hi
    Has anyone received this error message when downloading to their IPOD Video.
    I have both purchased music and my own music downloaded into my library, all the downloads appear to be complete and I can play them from the library. When I try to update the IPOD I get the error message "Unable to write to disk "ipod" unknown error (-69). On checking the IPOD it seems that I have some of the music ( i.e. half of a CD or purchased album)but not all of the tunes from an album.
    I have tried to reinstall and restore the ipod and used both ITUNES and IPOd updaters. I would really appreciate some help
    thanks for reading
    A

    Hi
    Has anyone received this error message when
    downloading to their IPOD Video.
    I have both purchased music and my own music
    downloaded into my library, all the downloads appear
    to be complete and I can play them from the library.
    When I try to update the IPOD I get the error message
    "Unable to write to disk "ipod" unknown error (-69).
    On checking the IPOD it seems that I have some of
    the music ( i.e. half of a CD or purchased album)but
    not all of the tunes from an album.
    I have tried to reinstall and restore the ipod and
    used both ITUNES and IPOd updaters. I would really
    appreciate some help
    thanks for reading
    A
    Jeff - You are just brilliant and have cheered me up no end - I have been trawling the manuals on and off for weeks now and couldn't find reference to the erro message. THANK YOU!
    IBM Thinkpad T40   Windows XP  

  • Cause of "unable to write to disk error"

    Using a epson perfection v100 scanner and keep getting an unable to write to disk error after it  scan and will not copy.   Any ideas about what to try to fix this? thank you..
    p.s. using snow leopard and I have already tried to re-dowload software off the epson site.

    Have you tried...
    Trashing preferences?
    Run Disk Utility?
    Instead of control-clicking on the drive, try control-clicking on the Capture Scratch folder and the project Subfolder and changing permissions.

  • Hard disk always working - sync_supers writting to disk every 5 second

    As the topic says. My computer is on my desk while I work and I can't stand the noise of hard disk doing something every 5 seconds. I think I noticed this since 2.6.36 kernel.
    When computer is completely idle it still writes to disk.
    Tried Ubuntu 10.10 and got the same result. I have WD Caviar Blue 500gb. On ext4 filesystem there is jbd2/sda* doing write every 5 seconds or so and on reiserfs there is sync_supers doing the same. I guess those that is journaling acitivy, but its anoying to hear hard drive working when computer is completely idle.
    Any tips?

    linux wrote:Does anyone know the destination where sync_supers is writing to?
    The Linux kernel mailing list has some information that may help on identifying what sync_supers is doing, http://lkml.org/lkml/2012/4/11/147.
    While you wait for kernel patches, there are some mount options that other people have suggested may help:
    Use noatime or at least relatime for ext* filesystems
    Use the option commit=60 or commit=300 to lengthen the time between syncs of data and metadata from 5 seconds to 1 or 5 minutes.  However, if the computer crashes between commits there may be some data loss.
    Use hdparm to change the acoustic management settings – https://bbs.archlinux.org/viewtopic.php … 5#p1063185

  • Does flush() safely write to disk on Windows?

    From problems with a 'C' application on Windows 2000 & XP
    that lost file data after a power failure even though it had called
    flush() lots of time. We discovered that Microsoft requires a 'c'
    flag on fopen() in order for a flush() call to to actually cause a write to disk.
    This is non-ANSI behaviour and I wondered whether Sun's JVM
    on Windows actually opened files using this flag on fopen().
    From trials using W2K & FAT32 with JDK 1.3.0 (Java 2 Standard Edition
    (build 1.3.0-C) the answer appears to be no, however, using NTFS the
    data is still present after a power fauilure.
    Does anyone know whether the Windows JVMs do pass this 'c' flag
    to fopen() or use another method to ensure that flush() actually does
    what it is supposed to. Any information would be appreciated. If
    a change has been made in later VM's I'd like to know the version
    it was fixed in.
    Thanks
    Steve

    I'm sorry I'm not giving any juke dollars for a one word answer!
    Eventually after searching the bug database on this site I found
    that bug 4266941 'in progress, bug' has documented the problem
    of a File flush() call not doing what you would expect. In case
    anyone is interested the documented workaround seems to work for us.
    That is File.flush() followed by FileDescriptor.sync().
    I was a little surprised that (for our application) this major
    flaw with flush() has received so little mention anywhere.
    Regards
    Steve

  • Can't add songs unless I restore the iPod. (unable to write to disk)

    iPod Shuffle 512
    Brand new XL SP2 machine with all windows updates
    The only way I can put new songs on my shuffle is if I (1) restore it, & (2) let it automatically fill. If I want specific songs to load I have to delete some of the songs that populated the playlist automatically & hurry up & add the desired songs to the ipods playlist because once it's done uploading it wont accept any more songs. It will give me that "Unable to write to disk" error. In a nutshell, the ipod will only upload during the initial session immediately after restoring.
    If I come back the next day or even just 2 minutes later wanting to add an additional song I have to start the process all over.
    This happened using the newest version of iTunes as well as an older version (about a year old) that I keep around because I know its stable & one of the updates in between caused my video podcasts to be choppy.
    Anything I can do or am I stuck?
    I knew I shoulda got a Mac!

    In my experince Mac is no better than PC, its all in the user and how much you know. I fix more Macs daily than PCs. Of course all the PC I work on I built myself... lets see you build your own Mac!

  • Multiple administrators, only one can write to disk

    I recently got an used MacBook Pro which came with an admin account. I tried to import my settings from an external disk (using Time Machine) but 10.8 couldn’t read the disk. I tried creating another admin account, and import my settings from it, unsuccessfully. Finally I downloaded 10.9 and during install I told it to import the account from the external disk, which it did.
    I now have 3 admin accounts:
    The one with which I can write to the hard disk, the original.
    The second one which is useless.
    The one with which I can sync my iphone and create a security copy. Whenever I try to write to the HD it asks me for authentication and it won’t let the programs (e.g. iWork) create files. I can only save in the “shared” folder.
    I wish to maintain the third account, mostly because I really need to be able to save the contents of my external memory unit (AKA iPhone) and delete the other accounts, but the minus sign in Settings/User accounts is grayed out and I can only highlight the account that I logged in with. Also, it concerns me not being able to write to HD; I mean, I could just save to the shared folder but it just doesn’t feel right.
    Thanks you very much in advance!

    The first thing you should do with a second-hand computer is to erase the internal drive and install a clean copy of OS X. How you do that depends on the model. Look it up on this page to see what version was originally installed.
    If the machine shipped with OS X 10.4 or 10.5, you need a boxed and shrink-wrapped retail Snow Leopard (OS X 10.6) installation disc, which you can get from the Apple Store or a reputable reseller — not from eBay or anything of the kind. If the machine has less than 1 GB of memory, you'll need to add more in order to install 10.6. I suggest you install as much memory as it can take, according to the technical specifications.
    If the machine shipped with OS X 10.6, you need the installation media that came with it: gray installation discs, or a USB flash drive for some MacBook Air models. If you don't have the media, order replacements from Apple. A retail disc, or the gray discs from another model, will not work.
    To boot from an optical disc or a flash drive, insert it, then reboot and hold down the C key at the startup chime. Release the key when you see the gray Apple logo on the screen.
    If the machine shipped with OS X 10.7 or later, you don't need media. It should boot into Internet Recovery mode when you hold down the key combination option-command-R at the startup chime. Release the keys when you see a spinning globe.
    Once booted from the disc or in Internet Recovery, launch Disk Utility and select the icon of the internal drive — not any of the volume icons nested beneath it. In the Partition tab, select the default options: a GUID partition table with one data volume in Mac OS Extended (Journaled) format. This operation will permanently remove all existing data on the drive, which is what you should do.
    After partitioning, quit Disk Utility and run the OS X Installer. When the installation is done, the system will automatically reboot into the Setup Assistant, which will prompt you to transfer the data from another Mac, its backups, or from a Windows computer. If you have any data to transfer, this is usually the best time to do it.
    You should then run Software Update and install all available system updates from Apple. If you want to upgrade to a major version of OS X newer than 10.6, buy it from the Mac App Store. Note that you can't keep an upgraded version that was installed by the previous owner. He or she can't legally transfer it to you, and without the Apple ID you won't be able to update it in Software Update or reinstall, if that becomes necessary. The same goes for any App Store products that the previous owner installed — you have to repurchase them.
    If the previous owner "accepted" the bundled iLife applications (iPhoto, iMovie, and Garage Band) in the App Store so that he or she could update them, then they're linked to that Apple ID and you won't be able to download them without buying them. Reportedly, Apple customer service has sometimes issued redemption codes for these apps to second owners who asked.
    If the previous owner didn't deauthorize the computer in the iTunes Store under his Apple ID, you wont be able toauthorize it under your ID. In that case, contact iTunes Support.

  • Problem with wlan sticks module, not able to write to disk any more

    Hello everybody,
    when I booted my PC today, a strange and some sort of severe problem occurred concerning my wlan stick(s) that I think, I'm not able to solve without your help. I searched for a solution but it didn't seem that somebody else has had a similar problem before.
    Here is the description:
    I have two wlan sticks (but I do not use both of them nor are they both plugged in at the same time), and both happen to malfunction since today. My "main" stick (used most of the time) is a BigTec Wireless 11N Adapter with a Realtek chipset. My second one (only used to solve problems with the other stick) is a Fritz! WLAN USB Stick (to be used with ndiswrapper).
    After bootup, which makes no problems at all, my "main" wlan stick is not able to connect to the network. When I run wicd-curses (I use wicd as network manager), the virtual terminal freezes (when I use urxvt under openbox to run wicd-curses, only the window freezes). After one minute, a message appears that says something about a dbus problem but I am not able to read it because of the screen clears. Then I'm able to use the terminal again, but (and this is the very, very strange about this) when I run any program that tries to write on my disk it stucks, so I can't cancel it with ctrl-c nor can I kill the process. Wicd-curses, ifconfig or iwconfig also crash after entering the command and show the same behavior. At this point, my wlan stick does not show any sign of being plugged in (normally it blinks...).
    My second stick makes the computer crash: After a few moments a stacktrace is shown (like when a kernel panic occurs), saying something about "stack being overrun". But I can't find the message in the log files so it is difficult to post it.
    When I tried to figure out a solution, I saw in pacman.log, that yesterday udev and hwdetect were updated... But also downgrading all the packages that were updated yesterday did not solve the problem!
    I'll post now the last lines of a few logs here (but nothing concerning the ndiswrapper stick, else it would be too disturbing), I hope they help you at helping me!
    everything.log
    Jan 23 15:25:26 localhost dhcpcd[835]: dhcpcd not running
    Jan 23 15:25:27 localhost kernel: [ 21.415035] r8712u: Loading firmware from "rtlwifi/rtl8712u.bin"
    Jan 23 15:25:27 localhost kernel: [ 22.063785] r8712u: 1 RCR=0x153f00e
    Jan 23 15:25:27 localhost kernel: [ 22.064534] r8712u: 2 RCR=0x553f00e
    Jan 23 15:25:27 localhost kernel: [ 22.170765] ADDRCONF(NETDEV_UP): wlan0: link is not ready
    Jan 23 15:25:27 localhost dhcpcd[847]: dhcpcd not running
    Jan 23 15:25:28 localhost kernel: [ 22.410354] e1000e 0000:00:19.0: irq 41 for MSI/MSI-X
    Jan 23 15:25:28 localhost kernel: [ 22.463386] e1000e 0000:00:19.0: irq 41 for MSI/MSI-X
    Jan 23 15:25:28 localhost kernel: [ 22.463902] ADDRCONF(NETDEV_UP): eth0: link is not ready
    Jan 23 15:25:28 localhost dhcpcd[854]: dhcpcd not running
    Jan 23 15:25:28 localhost kernel: [ 22.735037] r8712u: Loading firmware from "rtlwifi/rtl8712u.bin"
    Jan 23 15:25:29 localhost kernel: [ 23.383789] r8712u: 1 RCR=0x153f00e
    Jan 23 15:25:29 localhost kernel: [ 23.384535] r8712u: 2 RCR=0x553f00e
    Jan 23 15:25:29 localhost kernel: [ 23.490763] ADDRCONF(NETDEV_UP): wlan0: link is not ready
    Jan 23 15:26:11 localhost dhcpcd[1382]: dhcpcd not running
    Jan 23 15:26:12 localhost kernel: [ 66.495307] r8712u: Loading firmware from "rtlwifi/rtl8712u.bin" # then I hard reset because of the freeze
    errors.log
    Jan 23 15:00:01 localhost /USR/SBIN/CROND[5597]: (CRON) EXEC FAILED (/usr/sbin/sendmail): No such file or directory
    Jan 23 15:20:01 localhost /USR/SBIN/CROND[6215]: (CRON) EXEC FAILED (/usr/sbin/sendmail): No such file or directory
    Jan 23 15:25:26 localhost dhcpcd[835]: dhcpcd not running
    Jan 23 15:25:27 localhost dhcpcd[847]: dhcpcd not running
    Jan 23 15:25:28 localhost dhcpcd[854]: dhcpcd not running
    Jan 23 15:26:11 localhost dhcpcd[1382]: dhcpcd not running # then I hard reset because of the freeze
    daemon.log
    Jan 23 15:25:15 localhost [ 0.864888] udevd[48]: starting version 175
    Jan 23 15:25:15 localhost [ 4.116488] udevd[235]: starting version 178
    Jan 23 15:25:26 localhost dhcpcd[835]: dhcpcd not running
    Jan 23 15:25:27 localhost dhcpcd[847]: dhcpcd not running
    Jan 23 15:25:28 localhost dhcpcd[854]: dhcpcd not running
    Jan 23 15:26:11 localhost dhcpcd[1382]: dhcpcd not running # then I hard reset because of the freeze
    I hope you can help me and thank you for trying
    hoeffl
    P.S.: Excuse all the mistakes I made because of being new here, please!

    This seems to be a problem with r8712u on all 3.2.x and 3.3-rc kernels on all distros.  I've had it for weeks on Gentoo, Arch, and several other distros.
    If you are running a 3.2.x kernel, this is almost definitely the problem.  All 3.1 kernels don't do this.
    I posted a temporary work-around on the Arch bugzilla, and Larry Finger (kernel dev with wireless) is currently working on it (a patch).   
    In the meantime, If you compile your own kernels, you can get 3.2.x's to work normally- see my comment here for more details.   https://bugs.archlinux.org/task/27996
    Top of page doesn't say r8712u, but it's the same problem, and after the first 2-3 comments it deals with r8712u specifically.
    There is also info on the Gentoo forum 3.2 kernel quirks thread, towards the bottom of Page 1:  http://forums.gentoo.org/viewtopic-t-901702.html
    Last edited by wrc1944 (2012-02-03 07:45:32)

Maybe you are looking for

  • Working in CS 5.5, ID continuously crashes when placing images of any kind, Adobe says its an apple error. What do I do?

    Using an imac with 8gb ram, intel core, OS 10.9.5. I currently have CS 5.5. When working in InDesign, it continuously crashes whenever I place an image on the page. I've tried all types of images and sizes, but it still crashes. Talked to an adobe te

  • Crystal report add-on error

    Dear all, When we login to SAP client, we got an error message Action failed. Login failed for user 'sa' External Connection to the database failed... Do we have to have ODBC connection setup by 'Connect to SQL Server to obtain...'? When we use 'with

  • Return to ALV from function module

    Hi to all, I'm new in this forum. My name is Guido and I'm working with Abap from 6 months ago and I whish to greet all of you. Now I have a problem that I try to explain simply. I have created a report with 2 screens: the first one is a selction scr

  • Syntax error in standard SAP program.

    Can someone help me. I'm getting the following error while executing "Include /sapboq/bos_lbos01top, No component exists with the name /sapboq/mitem. Check the program SAPLBOS01" Error in the ABAP Application Program The current ABAP program "BS01_SA

  • BPS WIB - how to transport with correct URL in hyperlink

    Hi all, If I have a hyperlink in my BSP web interface (WIB for BPS)which references my BWD server, how do I make sure that when I transport to BWQ or BWP that the correct server address part of the URL is written in for the relevant system? Thanks, R