Geeks With Blogs

@jolson88
  • jolson88 Yeahhhh!!! Watching the first episode of the "new" Dr. Who (Series 1) with the wife. Forgot how much I like Rose. It's like Christmas :). about 1 day ago
  • jolson88 @moh @zacbrown Then I can add my name to the long list of folks who publish Android games that nobody buys :P. about 1 day ago
  • jolson88 @moh @zacbrown :). I'm sure once it arrives, it will be like Christmas morning. Can't wait! about 1 day ago
  • jolson88 Well, that makes it official. Just finished purchasing a Google Nexus 4. Now I have a device for Android gamedev. Some time w/ #libgdx ahead about 1 day ago
  • jolson88 @pvponline That can be applied to a lot of aspiring game developers as well! about 1 day ago
  • jolson88 @clemensv Yeah, that sums up my feelings as well. Wish I could, but I can't. about 1 day ago
  • jolson88 @zacbrown Sounds like a bummer. It seems to be my most cost effective option right now with it's current price tag. about 2 days ago
  • jolson88 Well, if I'm going to have to pay out $200+ to replace my phone w/ my carrier _anyways_, I might as well get the Google Nexus 4 unlocked #fb about 2 days ago
  • jolson88 @badlogicgames Ah, good point. No worries, I'll just keep on enjoying what I get already with libgdx :P. about 2 days ago
  • jolson88 Thanks @badlogicgames for #libgdx. First game dev framework that literally feels like home design-wise. So many good decisions :). about 2 days ago

News

Series

Add to Technorati Favorites


An Archived Managed World This blog has moved to http://www.managed-world.com/blog

Andrew recently watched my screencasts and had some great questions that came up around how Transactional NTFS behaves with the file system. So, I figured I would answer them here. So, if you want to see the context around his questions, check out his post.

Here's the paragraph with the questions:

I wonder what happens to files that never get committed - ala a long running transaction. They have to be taking up file space. Jason says not even Windows Explorer knows about them, but they have to exist somewhere. What if they overflow? Is there a way to clean house? If the poop is invisible, does it still stink?

Great observations and questions Andrew! In the case of a long running, open transaction, the files will exist on the disk. Hence, they are certainly taking up space on the disk. If you have 256 MB of free space on your disk, and try to write 257 MB of data to the disk within a transaction, you will get an "out of space" error like you would outside of a transaction.

Is there a way to clean house? Yes, rollback or commit the transaction. On rollback, any changes made within the transaction are rolled back, and then consequently removed form the disk.

But what if my server crashes in the middle of a transaction. Would I have turds floating around the file system? No, you would not. When an NTFS-formatted volume is mounted in Vista or Windows Server "Longhorn", any transactions that are "in-doubt" (the transaction manager is no longer around and we have no clue on the status of the transaction) will be rolled back automatically, effectively removing all the changes from disk. So, in that sense, you would not have any file turds you have to clean up after a system crash (like you would have if you were doing a "temp file -> rename" type of methodology.

Now, as is usual in transaction systems, you have to be _very_ aware and _very_ cautious of long-running transactions as it could cause some long-term problems that you don't want to deal with. So, there certainly are scenarios where Transactional NTFS just is not a good fit. As tends to be the case with all technology, make sure you are using the right tool for the right job :).

Posted on Thursday, April 5, 2007 12:13 AM Windows Client , Windows Server | Back to top


Comments on this post: Transactional NTFS and Free Disk Space

No comments posted yet.
Your comment:
 (will show your gravatar)
 


Copyright © Jason Olson | Powered by: GeeksWithBlogs.net | Join free