Questions tagged [disk]

Anything related to disk-like storage media, like hard-disks, CDs, DVDs, etc. By extension it could be applied to other mass storage media that are commonly referred as "disks", like SSD, flash cards, etc.

1293 questions
4
votes
7 answers

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…
Naveen
  • 74,600
  • 47
  • 176
  • 233
4
votes
1 answer

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…
user175564
4
votes
1 answer

How do I translate the data returned by FIBMAP into LBA sectors of the disk?

I need to determine the sector range(s) occupied by a file on a disk device (for Linux). Let's assume it's a simple disk (no RAID) with MBR or GPT partition table. I learned that I can get the position of a file within the file system using FIBMAP…
Isso
  • 1,285
  • 11
  • 23
4
votes
1 answer

How can I access the raw data of a drive from within vb.net?

How can I access the raw data of a drive in vb.net? I plan on making a filesystem, but I need raw disk access. I'm meaning something like this: Dim data(255) As Byte data = ReadSector("C:", 5) data(125) = asc("h") data(126) = asc("e") data(127) =…
Daffy
  • 841
  • 9
  • 23
4
votes
3 answers

Small file not committed to disk for over a minute

I have an embedded Linux app that writes to a file at a fairly slow rate (50 bytes/s or so). The file is on a hard drive, XFS filesystem. The file is being written to by calling write(), not fwrite(). If I power-cycle the system and check the file,…
gimmeamilk
  • 2,016
  • 5
  • 24
  • 36
4
votes
1 answer

Disk Throughput - new file vs. existing file using dd

I wanted to measure my disk throughput using the following command: dd if=/dev/zero of=/mydir/junkfile bs=4k count=125000 If the junkfile exists, my disk throughput is 6 times smaller than if junkfile does not exist. I have repeated that many times…
Amir
  • 5,996
  • 13
  • 48
  • 61
4
votes
2 answers

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…
amritad
3
votes
1 answer

Is there any opensource Memory DISK Buffer implementation in java?

I don't know how to name this kind of buffer exactly, I need it in the following scenario: Data are received continuously from network. The data received are added into Buffer. There is a reader reading data from Buffer continuously and perform…
ygnhzeus
  • 367
  • 1
  • 2
  • 14
3
votes
1 answer

cocoa how to get the ALREADY mounted unmountable disk

NSWorkspaceDidMountNotification works well to get the information of just mounted disk. But how can I get the information of already mounted disks before my app start? command line: "diskutil list" and "diskutil info /" works but there should be a…
Jiulong Zhao
  • 1,313
  • 1
  • 15
  • 25
3
votes
5 answers

Is it possible to delete both ends of a large file without copying?

I would like to know if it is possible, using Windows and c++, to take a large video file (several gigabytes in length) and delete the first and last few hundred megabytes of it “in-place”. The traditional approach of copying the useful data to a…
Simon Loach
3
votes
6 answers

How to avoid physical disk I/O

I have a process which writes huge data over the network. Let's say it runs on machine A and dumps around 70-80GB of file on machine B over NFS. After process 1 finishes and exits, my process 2 runs of machine A and fetches this file from machine B…
user900563
  • 237
  • 2
  • 3
  • 10
3
votes
1 answer

How can I get the GUID of my disc partitions?

I'm using WMI to get all disk information, like drives, drive letters, etc. but I have not found out how I could get the UUID/GUID of each partition.
larand
  • 773
  • 1
  • 9
  • 26
3
votes
2 answers

Random disk writes

I need to perform random updates in-place to a file. Let's I need to update a file at offset k1, k2, ...., kn. From a performance perspective does it matter if I write in any order or does the performance improve if I write in increasing order of…
user880946
  • 429
  • 1
  • 5
  • 5
3
votes
0 answers

Libguestfs copy_in, rsync_in operations are slow while copying/syncing large files

I am using golang guestfs binding. I am exploring Copy_in and Rsync_in functions. While doing copy/sync of large files/dirs from local to image(qcow2 image), it takes a lot of time. I went through the official document and this and it recommends to…
Yudi
  • 831
  • 4
  • 10
  • 19
3
votes
2 answers

How to keep a big hash on disk instead of in RAM?

I've got too little RAM to finish a calculation because of a large hash. Is there a drop-in Perl module that would let me use the hash without keeping it all in RAM? I expect it to top out around 4GB, and I've got a bit less than 2GB available for…
Anna
  • 2,645
  • 5
  • 25
  • 34