# рабочее

Published articles for рабочее.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Отладка через статистику

DevFeed: [Отладка через статистику](<https://devfeed.tech/articles/article-24793.md>)

Original publisher: [Read original article](<https://dev.cheremin.info/2024/06/blog-post.html>)

Author: Ruslan Cheremin (noreply@blogger.com)

Published: 2024-06-10T18:20:00Z

Content type: article

Language: ru

Sources: [\>рабочие заметки](<https://devfeed.tech/sources/source-2.md>)

Topics: [ide](<https://devfeed.tech/topics/ide.md>), [Software](<https://devfeed.tech/topics/software.md>)

Tags: [ide](<https://devfeed.tech/tags/ide.md>), [software](<https://devfeed.tech/tags/software.md>), [tag-e50b791533a6](<https://devfeed.tech/tags/tag-e50b791533a6.md>)

### AI overview

The article describes using aggregate statistics from IDE error reports to investigate difficult-to-reproduce bugs across millions of users and varied desktop configurations. It introduces a case involving storage built on a memory-mapped file, where newly added records sometimes encountered unexpected nonzero data.

### Source excerpt

JB, где я сейчас работаю, отличается от моих предыдущих мест работы тем, что мы делаем продукт для широкой аудитории - миллионы пользователей - и часть этой аудитории разрешает нам собирать с IDE всякую полезную статистику. Это придает разработке непривычный, но и очень интересный аспект: миллионы пользователей, причем десктопных - это огромное разнообразие и hardware/software конфигураций, и

## Are You Sure You Want to Use MMAP in Your Database Management System?

DevFeed: [Are You Sure You Want to Use MMAP in Your Database Management System?](<https://devfeed.tech/articles/are-you-sure-you-want-to-use-mmap-in-your-database-management-system-24789.md>)

Original publisher: [Read original article](<https://dev.cheremin.info/2022/01/are-you-sure-you-want-to-use-mmap-in.html>)

Author: Ruslan Cheremin (noreply@blogger.com)

Published: 2022-01-30T16:51:00Z

Content type: article

Language: ru

Sources: [\>рабочие заметки](<https://devfeed.tech/sources/source-2.md>)

Topics: [Database](<https://devfeed.tech/topics/database.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [IO](<https://devfeed.tech/topics/io.md>), [Kernel](<https://devfeed.tech/topics/kernel.md>)

Tags: [database](<https://devfeed.tech/tags/database.md>), [io](<https://devfeed.tech/tags/io.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [linux](<https://devfeed.tech/tags/linux.md>), [performance](<https://devfeed.tech/tags/performance.md>), [tag-cb5ff012b3f0](<https://devfeed.tech/tags/tag-cb5ff012b3f0.md>), [tag-e50b791533a6](<https://devfeed.tech/tags/tag-e50b791533a6.md>)

### AI overview

This Russian-language article examines whether memory-mapped files are suitable for database management systems. It argues that their apparent convenience can conceal operational issues requiring effort comparable to implementing a page cache, and that their expected performance advantage is not guaranteed. For modern SSDs and NVM, the cited article reports that memory-mapped reads can deliver 2-20 times lower throughput than direct reads that bypass the file cache, due to virtual-memory overhead such as page eviction and page-table updates.

### Source excerpt

Кажется, что отображение файлов в память (mmap) удобно использовать для реализации баз данных, потому что можно не реализовывать пул страниц, а бесплатно использовать всю машинерию виртуальной памяти, уже существующую в ОС - работать с данными как будто они лежат в памяти, и ОС позаботится почти обо всех деталях. В статье Are You Sure You Want to Use MMAP in Your Database Management System?1

## Когда имеет смысл передавать IO в отдельный поток?

DevFeed: [Когда имеет смысл передавать IO в отдельный поток?](<https://devfeed.tech/articles/io-24780.md>)

Original publisher: [Read original article](<https://dev.cheremin.info/2021/05/io.html>)

Author: Ruslan Cheremin (noreply@blogger.com)

Published: 2021-05-24T08:17:00Z

Content type: opinion

Language: ru

Sources: [\>рабочие заметки](<https://devfeed.tech/sources/source-2.md>)

Topics: [IO](<https://devfeed.tech/topics/io.md>), [Latency](<https://devfeed.tech/topics/latency.md>), [Low Latency](<https://devfeed.tech/topics/low-latency.md>), [legacy](<https://devfeed.tech/topics/legacy.md>)

Tags: [io](<https://devfeed.tech/tags/io.md>), [latency](<https://devfeed.tech/tags/latency.md>), [legacy](<https://devfeed.tech/tags/legacy.md>), [low-latency](<https://devfeed.tech/tags/low-latency.md>), [performance](<https://devfeed.tech/tags/performance.md>), [queueing-theory](<https://devfeed.tech/tags/queueing-theory.md>), [tag-e50b791533a6](<https://devfeed.tech/tags/tag-e50b791533a6.md>)

### AI overview

The article examines when sending network I/O on a separate thread can reduce response latency. It argues that a single-threaded design performs better under low load because it avoids inter-thread communication overhead, while a two-thread design can gain an advantage as load increases. Simulations show that the crossover point depends on the processing and coordination times.

### Source excerpt

Допустим, у нас есть простая система, которая принимает запросы из сети, как-то их обрабатывает ("бизнес-логика"), и отправляет результат назад, в сеть. Мы заинтересованы в быстром отклике (=latency), а отправка - это IO, так что возникает идея ее снести в отдельный поток. Но тогда придется передавать данные из основного потока в поток отправки - а межпоточная коммуникация это какие-то