disk

Programmatically getting per-process disk io statistics on Windows?

I would like to display a list of processes (Windows, C++) and how much they are reading and writing from the disk in KB/sec. The Resource Monitor of Windows 7 has the ability so I should be able to do the same. However I have unable to find a relevant API-call or find anything in the perfmon counters. Could anyone point me in the dire...

MySQL MyISAM disk-bound scaling issue / drive cache

I have the following lookup-table: CREATE TABLE `widgetuser` ( `widgetuserid` char(40) NOT NULL, `userid` int(10) unsigned NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`widgetuserid`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 DELAY_KEY_WRITE=1; I have a widgetuser_tmp Table with the same structu...

Poisson Disk distribution on hemisphere

Hi! I just implemented Poisson Disk generation in the plane with this simple algorithm: http://people.cs.ubc.ca/~rbridson/docs/bridson-siggraph07-poissondisk.pdf Now I would like to generate a Poisson Disk distribution on the surface of a hemisphere (or better, on a part of the spherical surface, given a certain angle) can anyone tell...

Flash - Why doesn't my SharedObject get saved on disk when closing IE?

I have a Flash application that uses SharedObject to save and read some data locally. As it is said everywhere Flash saves the data from the shared object to disk when the application is closed. And indeed it does when I test it with the stand-alone Flash Player or all of these browsers: Firefox, Opera, Safari, Chrome, Flock... But it do...

WMI Poor Performace

Hi I wrote a code in C# that maps logical drives to their physical disks, using WMI (System.Management). The code working perfectly, but slow like hell. In my machine (Windows 7 x64, Dual-Core with 3 GB RAM) it runs as least 1 second. 1 second is too slow for me, even 0.1 is more than enough to accomplish. I more than sore that this fun...

iphone file system save file from url

hello guys, i want to save a photo file from a given url to the documents folder of my app without giving it a filename just the url and it saves to disk, is that possible ? or do i have to get the data from the url and then parse it as UIImage then save that image to disk and give it a filename ? if there is no direct way, how can yo...

Is there a way to mount Android .img to access the AVD (Android Virtual Device) contents?

I feel a bit blind developing on an emulator for Android and not being able to see the file system on the AVD (.img). Is there a way to mount it in Windows or Linux, so that I could at least see the file listing and maybe contents? Bonus if it's mounted with write permissions as well. Thank you. ...

Given disk is slow and multiple cores does on the fly decompression make sense for performance?

It used to be that disk compression was used to increase storage space at the expense of efficiency but we were all on single processor systems back then. These days there are extra cores around to potentially do the decompression work in parallel with processing the data. For I/O bound applications (particularly read heavy sequentia...

Performance of one huge unix directory VS a directory tree?

My PHP project will use thousands of pictures and each needs only a single number for it's storage name. My initial idea was to put all of the pictures in a single directory and name the files "0.jpg", "1.jpg", "2.jpg", and all the way to "4294967295.jpg" . Would it be better performance-wise to create a directory tree structure and na...

How to change to an external disk drive in C

Hi all I was wondering how (if possible) to change to an external HDD in C. I am writing a program that works with an external HDD. Thanks much, Mr. Man ...

how to know whether disk is basic or dynamic?

In windows is it possible to know what kind of disk we are dealing with from a c/c++ program? forget about gpt or mbr, how to know whether it is basic or dynamic? Program input can be drive letter or any info related to disk, output should be dynamic or basic. No need of a direct way of doing, even if it is lengthy process, its okay. I c...

Assembly INT 13h - read disk problem

Hi to all I need to be able to write a program in assembly to read the first sector of a disk (The MBR) and write it to a floppy disk or at least show the data. I understand that INT 13h and 25h do not work in the windows protected mode and i even tried my code in Dos but the dos system hangs when I run the program. This is the code: ...

Partitioning and formatting vmdk virtual disk

Hi, I need to distribute directory containing about 300k files with total size of 20G. Other people should be able to easily access this directory and edit those files. Right now I'm using zip archives, but packing/unpacking takes a really long time. Recently a collegue of mine suggested using some kind of virtual disks. I'm familiar ...

How do I compute the capacity of a hard disk?

I have a worked example of how to compute the capacity of a hard disk, could anyone explain where the BOLD figures came out of? RPM: 7200 no of sectors: 400 no of platters: 6 no of heads: 12 cylinders: 17000 avg seek time: 10millisecs time to move between adj cylinders: 1millisec the first line of the answer given to me is: 12 x...

Efficient method to store Python dictionary on disk?

What is the most efficient method to store a Python dictionary on the disk? The only methods I know of right now are plain-text and the pickle module. Edit: Sorry for not being very clear. By efficient I meant fastest execution speed. The dictionary will contain mutable objects that will hold information to be parsed and modified. ...

[iPhone programming] UIImagePickerController run out of memory with camera source

Hi everyone. I got a big performance issue using UIImagePickerController and saving the image on disk. I can't figure out what I am doing wrong. Here is my code : - (void)imagePickerController:(UIImagePickerController *)pick didFinishPickingMediaWithInfo:(NSDictionary *)info { UIImage *image = [info objectForKey:@"UIImagePickerControlle...

iPhone/iPodTouch. Regarding the flash drive. How much faster is it then a physical disk drive?

Does anyone have a ball park speed comparison between a modern physical disk drive and the flash drive on iPhone/iPodTouch? What is behind this question is this: I want to pull images from the cloud, park them on the flash drive and then sequence through them as a flipbook animation keeping as few images in RAM as possible so as to keep ...

if two drives in a system - getting hard disk number - VC++

If two drives in a system - How to get Hard Disk Number? How to get in order (primary & secondary). ...

Difference between sequential write and random write

What is the difference between sequential write and random write in case of :- 1)Disk based systems 2)SSD [Flash Device ] based systems When the application writes something and the information/data needs to be modified on the disk then how do we know whether it is a sequential write or a random write.As till this point a write cannot b...

Programmatically assign new letter to existing drive with C++

I want to change a drive letter. For example, I can use diskpart to assign a new letter to a drive (a USB disk or a new hard disk). How can I implement it in C/C++? ...