disk

How to get CPU usage or disk usage of application using Windows API from C++?

How to proceed to get CPU usage or disk usage of application using API in C++??? I want to get the highest CPU usage or disk usage among the application running on windows. I have tried to find out API but there is no direct API for that. Can anyone please let me know how to proceed for this in C++. ...

What's the fastest way to read/write to disk in .NET?

I've got a little program that reads and writes files on disk. Breaking it down to the most simple level, it reads bytes from one file stream and writes them to another. It performs its duties fine, but it isn't the fastest thing. I've seen other applications that can tear through a gigabyte or more of reads/writes in amazing speeds. ...

Logic in Disk Defragmantation & Disk Check

What is the logic behind disk defragmentation and Disk Check in Windows? Can I do it using C# coding? ...

Delphi and HDD I/O Quoting , Resource Pre-Caching , Read/Write/seek parameter limiting.

I have dynamic array filled with bytes, which are read from .raw file with BlockRead() and this operation, logically, requires hell of a Shell resources and I wanted to know if there is any methods to reserve some amount or limit maximum amount of Read/Write/Seek used for Program run time from Hard Disk Drive*** [Clarification]: I meant...

How expand size virtual disk in virtual server 2005?

Hi, I'm using Virtual Server 2005 and working with a virtual hard disk 16GB. I need expand this virtual disk to 20GB. Thanks. Beatriz ...

Manipulate an Archive in memory with PHP (without creating a temporary file on disk)

Hi, I am trying to generate an archive on-the-fly in PHP and send it to the user immediately (without saving it). I figured that there would be no need to create a file on disk as the data I'm sending isn't persistent anyway, however, upon searching the web, I couldn't find out how. I also don't care about the file format. So, the ques...

Internal and external fragmentation

Can anyone please tell me the difference between internal and external fragmentation while allocation of disk space for files? ...

How to take advantage of Disk IO queueing

I need to read small sequences of data from a 3.7 GB file. The positions I need to read are not adjacent, but I can order the IO so that the file is read from beginning to end. The file is stored on a iSCSI SAN which should be capable of handling/optimizing queued IO. The question is, how can I make a one shot request of all the data/p...

How can I simulate a failed disk during testing?

In a Linux VM (Vmware workstation or similar), how can I simulate a failure on a previously working disc? I have a situation happening in production where a disc fails (probably a controller, cable or firmware problem). Obviously this is not predictable or reproducible, I want to test my monitoring to ensure that it alerts correctly. I...

How much faster is the memory usually than the disk?

IDE,SCSI,SSD,SATA or all of those. ...

How does one map physical sectors of a disk to the files that contain them on an HFS+ volume on Mac OS X

I've been recovering a hard disk using dd_rescue, which provides me a list of all of the device sectors it could not copy due to hardware errors. I'd like to take that list, and write a tool to give me all of the files that contain these bad sectors so I can delete them. I'm not sure what APIs I can use to do this--essentially i want to...

Direct disk access in windows (C#)

I want to be able to read and write data directly to and from a disk (i.e. at a sector / cluster level) but I've yet to find a suitable tool for doing this under windows. I've been trying to figure out how to write my own in C#, but the documentation I've found is sparse and only deals with C++ APIs. Whats the best way of reading /wri...

Programmatically accessing the contents of a Sony MP3 player

How to access/manipulate Sony MP3 player’s contents programmatically?.. A Sony Walkman MP3 player (NWZ-W202) is connected to a Vista Ultimate PC through a USB port. The player contents is visible by the Windows Explorer as “Computer\WALKMAN NWZ-W202\Storage Media\MUSIC\MediaFile1.mp3”. Computer Management\Storage\Disk Management lists...

Are MySQL databases with a MEMORY storage engine persisted to disk?

If MySQL databases with a MEMORY engine are stored in memory, does this mean that their contents are not persisted to disk? Or are they stored on HDD, but fully loaded into RAM on system power up? ...

What is SQLite3 Disk I/O Error in Cocoa

I am programming in snow Leopard 10.6. My application opens up a locally stored database successfully, but when it tries to insert into the database, I continue to receive 'Disk I/O error". Anyone has any ideas as to what could possibly cause this? Thanks Yang ...

How to determine allocated blocks on an NTFS disk

Is there a way of determining which clusters on an NTFS disk are allocated? I'm thinking along the lines of the display you see on a defrag program before you kick off the defrag itself. I guess you could parse the MFT but it strikes me that this could take a long time on a system with potentially hundreds of thousands of files. Thanks...

Probing for filesystem block size

I'm going to first admit that this is for a class project, since it will be pretty obvious. We are supposed to do reads to probe for the block size of the filesystem. My problem is that the time taken to do this appears to be linearly increasing, with no steps like I would expect. I am timing the read like this: double startTime = ge...

Performance issues with hard disk reading

I have a C++ program which reads files from the hard disk and does some processing on the data in the files. I am using standard Win32 APIs to read the files. My problem is that this program is blazingly fast some times and then suddenly slows down to 1/6th of the previous speed. If I read the same files again and again over multiple run...

Memory mapped - partially disk based algorithms

Are there any good resources or books for spillable data structures, ie say a queue, when storing large objects it could fill up all of memory, but if you can keep say the most used items of that queue structure in memory and the rest on disk (sort of like paging), similarly this question applies to other structures such as linked lists,...

FIFO queue (or stack) implemented on disk, not ram (preferably in C++)

Basically what I'm after is the equivalent of the Standard Template Library queue implemented in such a way as to use the disk for storage. The volume of data that will need to be in the queue is far greater than can be stored in the ram of most computers today. Ideally, I'm after a library to use. However, any recommendation on how to ...