Skip to main content
Filter by
Sorted by
Tagged with
Advice
1 vote
1 replies
38 views

I understand the standard explanation for why B-trees are used in databases: they minimize disk seeks by packing many keys into each node, keeping the tree shallow (3-4 levels), and enabling efficient ...
j.i.l.l's user avatar
  • 11
0 votes
1 answer
75 views

I’m exploring the Linux 0.11 source code, specifically how it reads data from the disk into memory. I’ve been analyzing the hd_out function and the associated do_hd_request in hd.c. Here’s the ...
0x1B05's user avatar
  • 3
0 votes
1 answer
143 views

I have an application that saves data to an xml file but when data cannot be interpreted it writes a message to a textfile. I am using Delphi 11, Windows 10, 64bit compilation The procedure to write ...
Bennie Coetzer's user avatar
0 votes
0 answers
82 views

When I write to a disk device or a drive, sometimes I get an access denied error: HANDLE hd=CreateFile("\\\\.\\PhysicalDrive1",GENERIC_WRITE,FILE_SHARE_READ|FILE_SHARE_WRITE, NULL,...
William's user avatar
  • 978
1 vote
1 answer
630 views

I'm encountering an issue where Node.js processes are consuming excessive disk I/O when I'm using Visual Studio Code (VSCode) with Remote SSH to develop Next.js applications on a cloud server. This ...
user23468663's user avatar
1 vote
0 answers
80 views

Greetings Stack Overflow community! I'm currently working on a Go script to fetch disk I/O operations using my API. However, I'm encountering a peculiar issue where the script returns empty values. In ...
kekw's user avatar
  • 410
0 votes
0 answers
3k views

I have a server running standard Prometheus node exporter. Metrics are properly collected. Now I need to display in Grafana rate of time spend for IO operations on all devices. In the /metrics for my ...
Gary Greenberg's user avatar
1 vote
0 answers
519 views

Linux provides /proc/[pid]/io interface to get I/O stats of a process. But in addition to the accumulated I/O of live threads, read_bytes and write_bytes fields also include the I/O of dead threads ...
Irfan Latif's user avatar
0 votes
1 answer
288 views

I was trying to measure the system performance with sysbench fileio test. However, I'm not sure what am I playing with when I change that file-block-size parameter. Previously I thought it was the ...
ada liu's user avatar
  • 32
-1 votes
1 answer
95 views

I am trying to write a bootloader by myself, but qemu-system-i386 CPU will reset probabilistically. But bochs does not have this problem. Why? my code is mbr.s and loader.s: # cat mbr.s %include "...
chenhao's user avatar
  • 19
1 vote
1 answer
460 views

I need to read a sector from the physical disk, but without using the system cache. I tried this: import os disk_path = "/dev/sdc" try: disk_fd = os.open(disk_path, os.O_RDONLY | os....
Marus Gradinaru's user avatar
1 vote
0 answers
113 views

The SQL databases generally use B-trees to store index (and sometimes data as well) in the disk. The B-tree is a tree of disk pages. To create B-tree, the DBMS would require access to pages on the ...
Nehchal Jindal's user avatar
0 votes
1 answer
255 views

According to Kafka doc https://kafka.apache.org/documentation/#persistence, Kafka utilities squential read/write performace of spnning disks and hence have high throughput. But how can this high ...
Sachin Verma's user avatar
  • 3,812
1 vote
0 answers
2k views

My SysAdmin colleague told me that the Postgres'hosts use NVME disk. How can I check that with Linux command? Why does the planner/optimizer seem to get it wrong when I set random_page_cost =1.1 To ...
Eric Renault's user avatar
2 votes
0 answers
681 views

I'm new to optimizing disk IO performance. I compared the performance of reading from file with or without direct IO enabled. The chunk size is 512KiB. As Direct IO reads data from disk directly to ...
lei hu's user avatar
  • 323
1 vote
2 answers
1k views

Once upon a time long ago, we had a bash script that works out a list of files that need to be copied based on some criteria (basically like a filtered version of cp -rf). This was too slow and was ...
Bruce Adams's user avatar
  • 5,819
-1 votes
2 answers
302 views

I have 5 vectors with different sizes in a vector (levelFreqs) and I have written a sequential code and a parallel code to store these vectors on a single disk (no parallel file system). What I see is ...
Shan's user avatar
  • 63
1 vote
0 answers
878 views

I am trying to make sense of sequential disk write performance on a spinning hard disk. I am using direct and sync io to bypass the page cache. For small block size (4KB) fio reports an iops of ~11. ...
sha's user avatar
  • 642
0 votes
0 answers
176 views

As a part of my data processing pipeline I'm reading many hdf files on a network drive, potentially away from the physical machine. After profiling (using cProfile) my code which does basically the ...
Jatentaki's user avatar
  • 13.2k
-1 votes
1 answer
145 views

Could anyone offer any troubleshooting ideas or pointers on where/how to get more information on the difference between sys and real time from the output below? It is my understanding that the ...
Cac3a's user avatar
  • 124
1 vote
1 answer
452 views

We have 3 nodes Cassandra cluster. We have an application that uses a keyspace that creates a hightload on disks, on read. The problem has a cumulative effect. The more days we interact with the ...
Nick's user avatar
  • 11
0 votes
0 answers
748 views

Our product uses the grafana tool to monitor a multi node, cpu, executor application. I don't know much as I am new in this field. At a particular moment I noticed that the "Disk IO Saturation&...
mskanyal's user avatar
  • 141
0 votes
1 answer
95 views

Recently, I was studying the implementation of index tree in database, and learned that using B+tree can store as many keys as possible in a disk block, so that the search process can read as few ...
rwxe's user avatar
  • 55
-3 votes
1 answer
64 views

I have made a simple fizzbuzz program in C, just for practicing some aspects of the C language. I am still learning it, I am coming from higher level languages. While running the program itself, with ...
theHeXaGoNdev's user avatar
2 votes
0 answers
57 views

Is it possible to overwrite the same disk address on a TSQL update statement? A use case would be preventing recovery of the original text on disk for security or anonymity reasons. CREATE TABLE Test( ...
Francisco d'Anconia's user avatar
1 vote
0 answers
147 views

I have difficulties finding out why my bitset takes up 29MB of memory when writing it to disk. I.e. the file that is written out is 29MB large. I write out the bitset in the following way: #include &...
GoldenRetriever's user avatar
2 votes
1 answer
841 views

I'm developing a C++ application whose output is a single big binary file (a couple of GBs, basically a large sequence of floats). The content of this file is generated asynchronoulsy by parallel ...
mma's user avatar
  • 101
0 votes
1 answer
1k views

I need to put a limit on block IO operations speed for a number of docker containers. To achieve this, I need to do something like: docker run -it --device-read-bps /dev/sda:1mb ubuntu,according to ...
gai-jin's user avatar
  • 883
1 vote
2 answers
375 views

You know, when an application opens a file and write to it, the system chooses in which cluster will be stored. I want to choose myself ! Let me tell you what I really want to do... In fact, I don't ...
Marus Gradinaru's user avatar
0 votes
0 answers
876 views

I use dd command as follows, to check the disk speed of my ubuntu box: dd if=/dev/zero of=/tmp/test1.img bs=640M count=1 oflag=dsync That gives me the actual disk speed. But how do I simulate a case ...
Madhusoodan's user avatar
0 votes
0 answers
206 views

I have a program which creates two lists of numbers, sorted and stored on disk. The task is is to merge both the lists using linear merge. They both are sorted and fast to merge. One list contains 1,...
user avatar
0 votes
1 answer
265 views

I have a MySQL database that I am running very simple queries against as part of a webapp. I have received reports from users starting today that they got an error saying that their account doesn't ...
glaba's user avatar
  • 156
0 votes
2 answers
2k views

I've been running a database application that writes data synchronously to disk, and so, looking for the best disk throughput. I've found that GCP's local SSDs are supposed to provide the best ...
Michael Davis's user avatar
0 votes
0 answers
412 views

I'm trying to make a disk dump program (like dd) with C language on Windows. The program is almost finished, but there is one problem: reading data from DVD is very slow. According to the ...
user356126's user avatar
0 votes
0 answers
136 views

What kinds of i/o error returns when remove disk abnormally(physically)? I use linux aio functions to i/o files. If I remove disk abnormally after "io_submit(control blocks with i/o infos)", ...
rnsjtngus's user avatar
  • 225
0 votes
1 answer
1k views

I would like to create a script that wait until a specific process has 0 MB/s of disk usage. import time import psutil def get_process(name): process = None for p in psutil.process_iter(): ...
0lan's user avatar
  • 259
2 votes
0 answers
508 views

Is there a method in Windows to clear the whole disk cache? I am doing benchmarks on a disk and try to measure which of my methods has the best performance in C#. The problem is though that the disk ...
msedi's user avatar
  • 1,815
0 votes
2 answers
11k views

I have installed Zabbix-server 5.0 on a Docker Container, following the official guide (for postgresql): https://www.zabbix.com/documentation/current/manual/installation/containers After that, I ...
Barragán Louisenbairn's user avatar
0 votes
0 answers
2k views

We have two mariadb servers Master and Slave each on PR and DR, We are observing high disk io above 90% and iowait some time above 20, when mariadb backup start at night iowait goes above 30 and ...
Muhammad Faheem Khan's user avatar
5 votes
5 answers
2k views

There are 81 million files (!) stored in one directory on a remote machine. All files end in ".paintedHaploDiversity". I would like to merge those files into one called allOutputs_3.5 in the ...
Remi.b's user avatar
  • 18.4k
7 votes
0 answers
587 views

I am having a call to getExternalCacheDir() function on my Android App, and this is causing an ANR for some of Android 10 users having the following devices (HUAWEI P30 lite, Galaxy A40, Xperia XZ3). ...
AmineG's user avatar
  • 1,936
1 vote
0 answers
166 views

I'm writing a kernel, and have hit an error that I don't understand, and can't fix. I'm developing a filesystem for it, because I wanted to quickly implement pesistent storage. The reads from the disk ...
TheMatt's user avatar
  • 23
1 vote
1 answer
2k views

I am using FIO tool on linux to run some IO's. I am interested to look at data contents that are generated as part of the FIO command. My command: sudo fio --name=randwrite --ioengine=libaio --iodepth=...
user1846251's user avatar
0 votes
2 answers
426 views

My Jenkins server is giving high read I/O of 5-10MB and there are no jenkins job is running on it. I was able to find the process(jenkins) with command iotop -oP and with lsof -p 20874 i'm getting ...
chandrayaan1's user avatar
0 votes
1 answer
694 views

Suppose I do: with open("temp.txt", "w" as f): while True: f.write(1) What shall happen when I come close to completely using up my disk space? It seems like a problem ...
Ankit Kumar's user avatar
  • 1,311
0 votes
1 answer
131 views

It's common knowledge that disk I\O is expensive. I typically read one line at a time using C# from a .txt file. It just crossed my mind that if C# were to give you a way of reading 100 lines a time, ...
Sir Fartsalot's user avatar
0 votes
0 answers
170 views

I'm not sure if this is a duplicate, but every time I find a thread about corrupted USB, disk management is still at least able to recognize a drive. My USB is so bricked that when I try to use disk ...
Arshia Rostami's user avatar
0 votes
2 answers
2k views

Trying to troubleshoot an issue with a mysterious disk io bottleneck caused by MySQL. I'm using the following commands to test disk read/write speed: #write dd if=/dev/zero of=/tmp/writetest bs=1M ...
user1538516's user avatar
0 votes
1 answer
749 views

We can define in Redis configuration file about snapshotting to happen after certain interval of time. I want to clear out that whether that snapshotting process in differential or it creates complete ...
Tarun Malviya's user avatar
11 votes
1 answer
26k views

I am getting the following stats for my redis while running docker stats command. I want to know about NET I/O and BLOCK I/O. I read few documentation they are saying about BLOCK I/O is something ...
Karthikeyan's user avatar