NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) GB-PVR Support (legacy) v
« Previous 1 … 338 339 340 341 342 … 1231 Next »
How to Avoid Heavy Fragmentation

 
  • 0 Vote(s) - 0 Average
How to Avoid Heavy Fragmentation
LewE
Offline

Posting Freak

Posts: 771
Threads: 115
Joined: Oct 2007
#1
2008-04-04, 11:59 AM
I have a 500 GB drive I only use for recording programs. When I had a single Hauppauge tuner it would store programs with minimal fragmentation, e.g. maybe 4 fragments for a 6GB file. Even when I erased a program and subsequently recorded another the "holes" were large enough that newly recorded programs were not very fragmented.

I added a second tuner and now if the two tuners are recording simultaneously they each put small writes on the disk and the resulting files are heavily fragmented. I defragmented the disk. It had more than 200,00 excess fragments before the defreg. It took approximately 20 hours to complete. I then recorded some programs and the new programs are heavily fragmented, e.g. 7600 fragments for a 3.3GB file.

I understand this happens because of how Windows handles writes to disk. Is there a way you can have PVRX2, when it begins recording a program, reserve a large section of the disk based on the estimated storage requirements for the length of program being recorded and then do the writes as it records within this reserved space?

Because of the size of the recorded programs it isn't practical to frequently defragment the disk and if I don't defrag then the file segments are so small that it interferes with smooth playback.

This must be a common occurrence based on the number of people who identify that they have more than one tuner and presumably use them to record multiple programs simultaneoulsly.
K.S.
Offline

Senior Member

Posts: 526
Threads: 12
Joined: Oct 2006
#2
2008-04-04, 12:57 PM
take a look here & here & here, that should take care of your problem

i don't think reserving space is a real option because:
1. it won't be trivial to implement (if at all possible by standard windows API?)
2. it would force the drive to many subsequent seeks during simultaneous recordings vs. fragment the drive but write both files on HDD without further hindrance (in performance & latency)
3. it might work against NCQ
sub Wrote:Yep, what he said.

curiosity killed the cat Big Grin
LewE
Offline

Posting Freak

Posts: 771
Threads: 115
Joined: Oct 2007
#3
2008-04-04, 02:18 PM
Thanks for the quick response. That gives me a lot to look at.
Anthony
Offline

Member

Posts: 241
Threads: 46
Joined: Mar 2006
#4
2008-04-04, 02:24 PM
I use PerfectDisk and have it scheduled to defrag my hard drives between 3am and 6am. I tried several defragmenting programs, and PerfectDisk was the only one that would defrag my drive with a single run. I had to run the others multiple times to completely defrag the drive.

More importantly, PerfectDisk moves the oldest files to the start of the drive, which means only the remainder of the disk (i.e. the newest files) get fragmented.

Works great for me.

Anthony
Koenie
Offline

Senior Member

Posts: 356
Threads: 31
Joined: Aug 2005
#5
2008-04-04, 02:34 PM
Maybe just one little remark. I use contig on a separate partition for the recording and it remains perfectly without fragments. I do start contig with low priority otherwise if several recordings finish around thus several instances of contig are running playback gets choppy:

start /low contig.exe %1
Regards Koen,

GBPVR 1.4.7
AMD 780G with X2 BE2350, 2gb ram, LCD-TV, Win XP
PVR500, PVR150 & PVC150 MCE MediaMVP D3A, 2 networked clients
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#6
2008-04-04, 05:46 PM
I've just installed a 750gb drive. I formatted it to 64kb block size rather than the default 4kb.
I'll see if it makes any difference - it ought to.
wtg
Offline

Posting Freak

Posts: 1,402
Threads: 120
Joined: Mar 2005
#7
2008-04-04, 06:04 PM
The best defrag I've seen, by a wide margin, is O&O Defrag from http://www.oo-software.com. I tested a whole bunch of them a long time ago and it's the only one that could completely defrag my drives at 1 go, even when they were near full. The difference was quite significant. It has lots of other configuration options, scheduling, etc. They also offer a trial.

I don't think I tried PerfectDisk. I'll check it out. My trial of O&O expired and I was just getting ready to purchase it. Good to have choices.
philly_phenom
Offline

Senior Member

Posts: 566
Threads: 97
Joined: Aug 2006
#8
2008-04-04, 07:24 PM (This post was last modified: 2008-04-04, 07:28 PM by philly_phenom.)
I just use the windows defrag & added a task to defrag once a week - 2AM on a Saturday morning.

Come Friday, there's pretty heavy fragmentation, but I've never noticed it interfering with playback. If once per week is not enough, you can have it run two or three times - even daily if you want.

Yes there are better defrag tools out there, but I'd recommend trying this first since you don't have to purchase anything extra. If it doesn't meet your needs, then purchase another tool.
GBPVR v1.4.7
Windows 7 Ultimate (64-bit)
Intel Core 2 Duo 2.33 GHz
4 GB RAM, 160GB system drive
640GB recording drive
PVR-500 - analog cable stations
HDHomeRun - ASTC via antenna
nVidia GeForce 8600GT
1 PCH @ 1080p componenent (was NTSC via composite)
1 PCH @ 1080p HDMI (was component)
LewE
Offline

Posting Freak

Posts: 771
Threads: 115
Joined: Oct 2007
#9
2008-04-04, 10:39 PM (This post was last modified: 2008-04-04, 11:22 PM by LewE.)
Anthony Wrote:I use PerfectDisk and have it scheduled to defrag my hard drives between 3am and 6am. Anthony
I use Perfect Disk also (defragging my system disk every night and a second data drive I use for photos and videos I created once a week) but it takes a very long time to push around 500GB of multi-gigabyte files when it runs. Like I said, it takes around 20 hours to defrag the disk so defragging nightly is out of the question. I could run an Analyze and then defrag only the files that are heavily defragmented but I don't want to have to get involved in that manual process every day.

The CONTIG program may be the best solution for the extensive fragmenting that occurs when two or more tuners are recording simultaneously.

UPDATE: I sent a query to Raxco to see whether a scheduled defrag can be performed only on recently changed files. I expect the answer is "No" but in the past they have been receptive to adding features to the program.

One that I had requested before was the ability to select individual files to defrag by clicking on them from the "Most Fragmented Files" list after an analysis and this was added to Perfectdisk 2008.
LewE
Offline

Posting Freak

Posts: 771
Threads: 115
Joined: Oct 2007
#10
2008-04-04, 10:46 PM
martint123 Wrote:I've just installed a 750gb drive. I formatted it to 64kb block size rather than the default 4kb.
I'll see if it makes any difference - it ought to.
When you are talking of program files being 3-6GB or more in size, I don't think the difference between 4KB and 64KB block size will make much difference.

Keep in mind that if you only have one tuner then fragmenting probably won't be an issue because when you delete a program you free up a contiguous space that can handle a similar length program. Before I added the second tuner fragmenting wasn't an issue at all. Even after multiple times of recording programs and deleting others I found that I would only get approximately 5-7 fragments for a newly recorded program. A 3GB file that is in 7 fragments will not impact performance at all.

It's only when you have multiple tuners writing to disk simultaneously and taking turns to write to the next available disk space that you get the problem.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Microsoft fragmentation display stays red rmorein 2 1,470 2009-07-12, 08:06 AM
Last Post: martint123
  Alternative to FSE to avoid screen tearing fuzzweed 47 16,911 2008-11-20, 06:54 PM
Last Post: johnsonx42
  Fragmentation apelly 5 2,333 2008-07-29, 04:14 PM
Last Post: Paul Shirley
  How do you handle file fragmentation? trock 4 1,756 2007-10-23, 03:19 AM
Last Post: sub
  Heavy CPU usage Binky 6 2,055 2007-07-13, 06:32 AM
Last Post: stustunz
  how to avoid hickups in playback? Cosworth 8 2,158 2005-09-29, 04:06 PM
Last Post: Cosworth
  Getting XRecord / CDK SCheduler to work to avoid duplicate recordings thawk 1 1,152 2005-04-01, 11:36 AM
Last Post: jrockintuitive
  recording stopped under 'heavy use' stefan_k 3 1,245 2005-03-09, 08:21 PM
Last Post: sub
  Avoid tv_grab_na_dd for now CodeMonkey 4 1,891 2004-04-17, 06:17 PM
Last Post: CodeMonkey
  Heavy Memory Usage RockTheThird 6 3,089 2004-03-14, 06:21 PM
Last Post: RockTheThird

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode