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
119
votes
9 answers

Clear file cache to repeat performance testing

What tools or techniques can I use to remove cached file contents to prevent my performance results from being skewed? I believe I need to either completely clear, or selectively remove cached information about file and directory contents. The…
Stephen Denne
  • 36,219
  • 10
  • 45
  • 60
85
votes
4 answers

Internal and external fragmentation

Can anyone please tell me the difference between internal and external fragmentation while allocation of disk space for files?
wantobegeek
  • 1,665
  • 3
  • 19
  • 19
84
votes
8 answers

NodeJS How do I Download a file to disk from an aws s3 bucket?

My goal: Display a dialog box prompting the user to save a file being downloaded from aws. My problem: I am currently using awssum-amazon-s3 to create a download stream. However I've only managed to save the file to my server or stream it to the…
gbachik
  • 1,637
  • 3
  • 17
  • 29
73
votes
5 answers

How to purge disk I/O caches on Linux?

I need to do it for more predictable benchmarking.
taw
  • 18,110
  • 15
  • 57
  • 76
73
votes
3 answers

Is it safe to delete the journal file of mongodb?

If I delete the 3.1G journal file, sudo service mongodb restart will fail. However, this file is taking too much space. How can I solve this problem? How can I remove it? bash$ du -sh /var/lib/mongodb/* 4.0K _tmp 65M auction_development.0 128M …
user94602
  • 883
  • 1
  • 7
  • 8
67
votes
1 answer

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

How much faster is the memory usually than the disk?

IDE,SCSI,SSD,SATA or all of those.
lovespring
  • 19,051
  • 42
  • 103
  • 153
55
votes
4 answers

How to check remaining space in storage device EC2

I've connected to amazon Ec2 instance through putty. How can I check the remaining space in instance?
user3917663
50
votes
6 answers

How do I retrieve disk information in C#?

I would like to access information on the logical drives on my computer using C#. How should I accomplish this? Thanks!
leo
  • 1,043
  • 2
  • 11
  • 8
42
votes
10 answers

How to find the amount of free storage (disk space) left on Android?

I am trying to figure out the available disk space on the Android phone running my application. Is there a way to do this programmatically? Thanks,
Ashwin
  • 425
  • 1
  • 4
  • 4
39
votes
8 answers

Visual Studio 100% disk usage

I have VS 2013 and Microsoft Windows 8.1 The issue appeared at the ending of last week. Without any updating or important changing, when I do somethings in VS, disk usage reaches 100%. For example, when I click on "Check In" button in the "Team…
Merta
  • 965
  • 1
  • 11
  • 23
36
votes
9 answers

Is there any way of detecting if a drive is a SSD?

I'm getting ready to release a tool that is only effective with regular hard drives, not SSD (solid state drive). In fact, it shouldn't be used with SSD's because it will result in a lot of read/writes with no real effectiveness. Anyone knows of a…
smartins
  • 3,808
  • 7
  • 42
  • 54
33
votes
2 answers

What is a sparse file and why do we need it?

What is a sparse file and why do we need it? The only thing that I am able to get is that it is a very large file and it is efficient(in gigabytes). How is it efficient ?
Luv33preet
  • 1,686
  • 7
  • 33
  • 66
32
votes
1 answer

How to lay out B-Tree data on disk?

I know how a B-Tree works in-memory, it's easy enough to implement. However, I don't know how to find a data layout that works effectively on disk, such that: The number of entries in the B-Tree can grow indefinitely (or at least to >…
Martin Häusler
  • 6,544
  • 8
  • 39
  • 66
32
votes
5 answers

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

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…
ralokt
  • 1,855
  • 3
  • 17
  • 19
1
2 3
86 87