disk

How to download files directly to disk on the iPhone os?

Hi, I would like to download files directly from an URL to the disk using objective-c on the iPhone os. Currently I am using NSURLConnection to send a synchronousRequest, writing the returned NSData into a file. How can I change the download handling (still having the request beeing synchronous, it is already in a background thread) t...

Disk IO profiler for existing applications

I need to know what file a specific program read. (this specific program is based on .net). Is there a recommendation for a good profiler? ...

Win32 API P-Invoke to bring a disk online, offline, and set unique ID

I am currently using Diskpart to accomplish these functions, but i would like to be able to use P-Invoke and not have to shell out to an external process in my C# app. The example Diskpart scripts are: //Online a disk Select disk 7 disk online // Reset GPT Identifier select disk 7 UNIQUEID DISK ID=baf784e7-6bbd-4cfb-aaac-e86c96e166ee...

Performance comparison of MemCached with Disk Caching

Hi, I would like to know the performances of Memcached on remote server(on same LAN) with Disk Caching.Besides Memcached is a scalable cache solution, would there be any advantage of using Memcached with respect to performance when compared to disk caching. Regards, Mugil. ...

Ruby 1.8 and disk I/O in a multi-threaded setting

Ruby 1.8 uses userspace threads, not operating system threads. This means that Ruby 1.8 can only utilize a single CPU core no matter how many Ruby threads you create. On the bright side, not all is bad. Ruby 1.8 internally uses non-blocking I/O while Ruby 1.9 unlocks the global interpreter lock while doing I/O. So if one Ruby thr...

How can be implemented non-blocking disk I/O?

I'm interested in file and raw. ...

What do the enum values of objLogicalDisk.DriveType in vbscript refer to?

Hi, so the following code: Dim objFSO : Set objFSO = CreateObject("Scripting.FileSystemObject") Dim colDrives : Set colDrives = objFSO.Drives Dim objWMIService : Set objWMIService = GetObject("winmgmts:") Dim objLogicalDisk Dim objDrive For Each objDrive in colDrives Set objLogicalDisk = objWMIService.Get("Win32_LogicalDisk.Devic...

Can a process lock a disk so that no other process can access it?

Is there a way for a process to lock an entire disk so that no other process can access any file on the disk until this process releases the lock? Disk i/o operations for the other processes would presumably block until the lock is released. The OS in question is Linux. ...

NASM and INT13h - what am I doing wrong?

Hey, I'm pretty interested in OS writing, I was for a long time, but still just could not swallow it (I mostly go with "What can't you understand on first read you should not do at all" - and it applies well for everything else I do, like PHP, HTML, AS3.0, C++... a lot more) just now I KIND of got it. The problem is - really, ASM was not...

Ruby Get Available Disk Drives

Can anyone tell me how I can get a list of the available disk drives in ruby? I am creating an open file dialogue and need to know! Thanks in advance, ell. ...

Is there a shell script that can monitor partition usage?

When I used to use cPanel it would send me an email when any partitions were approaching full. Is there a script out there that monitors df output that I can put in a cronjob? Thanks ...

Detect system load with emphasis on "swap thrashing" in Linux

I crafted a Bash prompt that, When the working directory is a Git repository, displays the name of the current repository. Besides, it contains the current ongoing task and the time spent doing it (from a homebrew timekeeping tool). This, of course, means that just displaying the prompt means running two processes. This has the drawback...

SQL Server 2008 large table performance

Hey all, I have this relatively large table in a separate filegroup (2 GB, well, it's not THAT large but large enough I think to start thinking about performance as it's a heavy duty table). This is the only table in this filegroup. Right now the filegroup contains only one datafile. Assuming the table is well-indexed and that index ...

Finding Unmapped Network Share Capacity in Windows

Hi, I need to find the underlying disk capacity (total size) of an unmapped network share in windows (in Win7, Vista, XP, Server 2008), given a UNC path (e.g. given something like "\\share_1\subdir"). I've looked all over the web for several days and seem to find no answer to this issue. I would appreciate any leads. Thanks in advance ...

Does growing files on Linux cost anything?

Is there any noticeable difference in speed between these 2 scenarios? Scenario 1: I have a file of size 1024 bytes filled with 0s for every byte. I open the file and write 1024 bytes of 1s with fwrite. Scenario 2: I have a file of size 512 bytes filled with 0s for every byte. I open the file and write 1024 bytes of 1s with fwrite. Ob...

Disk reads / seeks on a shared unix server for a directory list

I want to get a better understanding of how disk reads work for a simple ls command and for a cat * command on a particular folder. As I understand it, disk reads are the "slowest" operation for a server/any machine, and a webapp I have in mind will be making ls and cat * calls on a certain folder very frequently. What are "ball park" ...

How can I write a hard drive sector as reserved?

I am hex editing a hard disk and I would like to mark some hard drive sectors as reserved so that they are not overwritten by Windows (Vista or 7). I think this is possible, since during a defrag, the disk says that there are some sectors that aren't movable. How can I do this? ...

On-Disk database storage, best practices

If this question seems common to you, I apologise, I did a quick search around this site and a few google searches and could not find a satisfying answer. My question is this; I have only been a software developer for 3-4 years now. This may seem like a time long enough to answer this question myself however in all my time, I have nev...

Check Disk fullness

Possible Duplicate: How to determine how much free space on a drive in Qt? How can I check disk fullness with C++ using Qt ? Thanks a lot ...

Different ways to ask Windows to write data to disk

Usually, when an application writes to one of it's files on disk, the file modified timestamp changes. Sometimes, and in my case it is an application written in ProvideX (a Business Basic derivative i believe) doing the writing, the modified timestamp does not change after a write. A program like MyTrigger will not pick up on the write...