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
6
votes
2 answers

How can C-SCAN (elevator) algorithm cause starvation?

I'm reading Silberschatz's OS book. In section 16.8.1 it says: The fundamental problem with the elevator algorithm is that I/O operations cocentrated in a specific region of the disk can result in starvation of requests that need to occur in…
musa
  • 1,050
  • 4
  • 15
  • 26
6
votes
1 answer

Obtaining serial number of disk attached to Windows Server 2019

For years I've been using the drive serial number to map virtualized guest disks to the hyper-visor disk. VMWare ESXi for instance will set the disk serial number to the UUID of the disk - allows for easy mapping. Now that I've got a few Windows…
NTDLS
  • 4,757
  • 4
  • 44
  • 70
6
votes
3 answers

How to specify Azure Linux OS Disk Type with Azure CLI Create VM

I am successfully creating a Linux VMs with the Azure CLI Command... vm create --resource-group myResourceGroup --name myVMName --image credativ:Debian:9:latest --size Standard_B1s I note that the resulting OS disk is a 30GiB Premium SSD. Is it…
6
votes
1 answer

When exactly do things get removed from urlcache's memory and disk?

let memoryCapacity = 200 * 1024 * 1024 let diskCapacity = 1 * 1024 * 1024 let cache = URLCache(memoryCapacity: memoryCapacity, diskCapacity: diskCapacity, diskPath: "myDataPath") URLCache.shared = cache Scenario1 I'm setting urlcache's memory to…
mfaani
  • 33,269
  • 19
  • 164
  • 293
6
votes
2 answers

How to remove old SVN revisions

Our SVN repository is approaching 0.5 GB. We have nowhere near that amount of code in our production system. Is it possible to remove old revisions. I tried svn dump with a beginning revision number, but to no avail. I couldn't import that into a…
Wes
  • 6,697
  • 6
  • 34
  • 59
6
votes
3 answers

How can I monitor the free space on a persistent disk in Google Compute Engine?

I've created a persistent disk in Google Compute Engine and attached it to an instance. What I am wondering however, is how can I monitor the free space on the disk? Can't see it either in the Google Cloud Console or from the gcloud tool.
aknuds1
  • 65,625
  • 67
  • 195
  • 317
6
votes
4 answers

Detect disk activity in Delphi

I'm using Delphi 2007. I am copying files to a remote drive. When the copying ends, I shutdown/standby the machine. It can happen that some files don't get copied from buffer to disk, and the remote disk gets disconnected, so the backup is not…
Jlouro
  • 4,515
  • 9
  • 60
  • 91
6
votes
0 answers

Can I use WMI to find the network usage by each process?

I'd like to use WMI on some windows systems to poll the network usage of each process. From what I can tell, there are many IO instances in the Win32_PerfRawData_PerfProc_Process but they are for the combined IO of network,disk,and device. Is there…
JellyJoe
6
votes
2 answers

Performance comparison of MemCached with Disk Caching

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…
6
votes
2 answers

Backing up, Deleting, Restoring Elasticsearch Indexes By Index Folder

Most of the ElasticSearch documentation discusses working with the indexes through the REST API - is there any reason I can't simply move or delete index folders from the disk?
JasonG
  • 5,794
  • 4
  • 39
  • 67
6
votes
1 answer

Is thread still running when the process in "Disk Sleep"?

When a process go into the special kind of sleep, known as "D" or "Disk Sleep" in Linux, is its child thread still running normally ? So that the thread could tell me the process is in "Disk Sleep" state. about the "D" state BTW: Sorry for my poor…
shlinux
  • 63
  • 1
  • 5
6
votes
7 answers

Flush disk write cache

When the policy for a disk in Windows XP and Vista is set to enable write caching on the hard disk, is there a way to flush a file that has just been written, and ensure that it has been committed to disk? I want to do this programmatically in…
selwyn
  • 1,184
  • 2
  • 10
  • 20
6
votes
5 answers

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…
Adam
  • 61
  • 1
  • 2
6
votes
4 answers

How do you write to disk (with flushing) in Java and maintain performance?

Using the following code as a benchmark, the system can write 10,000 rows to disk in a fraction of a second: void withSync() { int f = open( "/tmp/t8" , O_RDWR | O_CREAT ); lseek (f, 0, SEEK_SET ); int records = 10*1000; clock_t…
Jay
  • 19,649
  • 38
  • 121
  • 184
6
votes
1 answer

the architecture of on-disk data structures

The closest I've come to finally understanding the architecture of on disk btrees is this. It's simple and very easy to read and understand. But I still feel confused. It doesn't seem like there is any in memory data structure at all. Am I missing…
alf
  • 681
  • 1
  • 8
  • 19