Units
Translation components API.
See the Weblate's Web API documentation for detailed description of the API.
GET /api/translations/documentation/articlesvm-design_index/ru/units/?format=api
{ "count": 82, "next": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/units/?format=api&page=2", "previous": null, "results": [ { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "An easy to follow description of the design of the FreeBSD virtual memory system" ], "previous_source": "", "target": [ "Простое и понятное описание архитектуры системы виртуальной памяти FreeBSD" ], "id_hash": -5212445871253427557, "content_hash": -5212445871253427557, "location": "documentation/content/en/articles/vm-design/_index.adoc:1", "context": "", "note": "type: YAML Front Matter: description", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 1, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 14, "source_unit": "https://translate-dev.freebsd.org/api/units/1181040/?format=api", "priority": 100, "id": 1811460, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=37a9ac18c8fcea9b", "url": "https://translate-dev.freebsd.org/api/units/1811460/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.448987Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "Design elements of the FreeBSD VM system" ], "previous_source": "", "target": [ "Элементы архитектуры системы виртуальной памяти во FreeBSD" ], "id_hash": 7433581282980789500, "content_hash": 7433581282980789500, "location": "documentation/content/en/articles/vm-design/_index.adoc:1, documentation/content/en/articles/vm-design/_index.adoc:11", "context": "", "note": "type: Title =", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 7, "source_unit": "https://translate-dev.freebsd.org/api/units/367943/?format=api", "priority": 100, "id": 1811461, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=e72962cac50ffcfc", "url": "https://translate-dev.freebsd.org/api/units/1811461/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.449736Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "Abstract" ], "previous_source": "", "target": [ "Аннотация" ], "id_hash": 2824600030541811663, "content_hash": 2824600030541811663, "location": "documentation/content/en/articles/vm-design/_index.adoc:50", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 4, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/367945/?format=api", "priority": 100, "id": 1811462, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=a732fec32d008fcf", "url": "https://translate-dev.freebsd.org/api/units/1811462/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.450363Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "Matthew Dillon <dillon@apollo.backplane.com>" ], "previous_source": "", "target": [ "Matthew Dillon <dillon@apollo.backplane.com>" ], "id_hash": 3328405665575463437, "content_hash": 3328405665575463437, "location": "documentation/content/en/articles/vm-design/_index.adoc:52", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 5, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/1598414/?format=api", "priority": 100, "id": 1811463, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=ae30df517505ea0d", "url": "https://translate-dev.freebsd.org/api/units/1811463/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.450971Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "The title is really just a fancy way of saying that I am going to attempt to describe the whole VM enchilada, hopefully in a way that everyone can follow. For the last year I have concentrated on a number of major kernel subsystems within FreeBSD, with the VM and Swap subsystems being the most interesting and NFS being \"a necessary chore\". I rewrote only small portions of the code. In the VM arena the only major rewrite I have done is to the swap subsystem. Most of my work was cleanup and maintenance, with only moderate code rewriting and no major algorithmic adjustments within the VM subsystem. The bulk of the VM subsystem's theoretical base remains unchanged and a lot of the credit for the modernization effort in the last few years belongs to John Dyson and David Greenman. Not being a historian like Kirk I will not attempt to tag all the various features with peoples names, since I will invariably get it wrong." ], "previous_source": "", "target": [ "Это название — просто замысловатый способ сказать, что я попытаюсь описать всю систему виртуальной памяти (VM) целиком, по возможности так, чтобы это было понятно каждому.В течение последнего года я сосредоточился на нескольких основных подсистемах ядра FreeBSD. Наиболее интересными из них стали подсистемы VM и подкачки (Swap), тогда как работа с NFS оказалась, скорее, «необходимой рутиной». Я переписал лишь небольшие части кода. В области VM моей единственной крупной переработкой стала подсистема подкачки. В основном моя работа заключалась в очистке и поддержке кода, с умеренными правками и без серьёзных изменений алгоритмов в подсистеме VM. Теоретическая основа VM-подсистемы осталась неизменной, и львиная доля заслуг в её модернизации за последние годы принадлежит Джону Дайсону и Дэвиду Гринману. Я не историк, в отличие от Кирка, поэтому не стану приписывать различные функции конкретным людям — всё равно где-нибудь ошибусь." ], "id_hash": 7312304718250146262, "content_hash": 7312304718250146262, "location": "documentation/content/en/articles/vm-design/_index.adoc:59", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 6, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 166, "source_unit": "https://translate-dev.freebsd.org/api/units/615365/?format=api", "priority": 100, "id": 1811464, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=e57a866624b679d6", "url": "https://translate-dev.freebsd.org/api/units/1811464/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.451582Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "'''" ], "previous_source": "", "target": [ "'''" ], "id_hash": -2596281593872070506, "content_hash": -2596281593872070506, "location": "documentation/content/en/articles/vm-design/_index.adoc:61", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 7, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/367949/?format=api", "priority": 100, "id": 1811465, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=5bf827a5645ec896", "url": "https://translate-dev.freebsd.org/api/units/1811465/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.452289Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "Introduction" ], "previous_source": "", "target": [ "Введение" ], "id_hash": 5330140601372690748, "content_hash": 5330140601372690748, "location": "documentation/content/en/articles/vm-design/_index.adoc:65", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 8, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/367951/?format=api", "priority": 100, "id": 1811466, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=c9f876a2fbb4c93c", "url": "https://translate-dev.freebsd.org/api/units/1811466/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.452849Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "Before moving along to the actual design let's spend a little time on the necessity of maintaining and modernizing any long-living codebase. In the programming world, algorithms tend to be more important than code and it is precisely due to BSD's academic roots that a great deal of attention was paid to algorithm design from the beginning. More attention paid to the design generally leads to a clean and flexible codebase that can be fairly easily modified, extended, or replaced over time. While BSD is considered an \"old\" operating system by some people, those of us who work on it tend to view it more as a \"mature\" codebase which has various components modified, extended, or replaced with modern code. It has evolved, and FreeBSD is at the bleeding edge no matter how old some of the code might be. This is an important distinction to make and one that is unfortunately lost to many people. The biggest error a programmer can make is to not learn from history, and this is precisely the error that many other modern operating systems have made. Windows NT(R) is the best example of this, and the consequences have been dire. Linux also makes this mistake to some degree-enough that we BSD folk can make small jokes about it every once in a while, anyway. Linux's problem is simply one of a lack of experience and history to compare ideas against, a problem that is easily and rapidly being addressed by the Linux community in the same way it has been addressed in the BSD community-by continuous code development. The Windows NT(R) folk, on the other hand, repeatedly make the same mistakes solved by UNIX(R) decades ago and then spend years fixing them. Over and over again. They have a severe case of \"not designed here\" and \"we are always right because our marketing department says so\". I have little tolerance for anyone who cannot learn from history." ], "previous_source": "", "target": [ "Перед тем, как перейти непосредственно к существующей архитектуре, потратим немного времени на рассмотрение вопроса о необходимости поддержки и модернизации любого длительно живущего кода. В мире программирования алгоритмы становятся более важными, чем код, и именно из-за академических корней BSD изначально большое внимание уделялось проработке алгоритмов. Внимание, уделенное архитектуре, в общем отражается на ясности и гибкости кода, который может быть достаточно легко изменен, расширен или с течением времени заменен. Хотя некоторые считают BSD \"старой\" операционной системой, те их нас, кто работает над ней, видят её скорее системой со \"зрелым\" кодом с различными компонентами, которые были заменены, расширены или изменены современным кодом. Он развивается, и FreeBSD остается передовой системой, вне зависимости от того, насколько старой может быть часть кода. Это важное отличие, которое, к сожалению, не всеми понимается. Самой большой ошибкой, которую может допустить программист, является игнорирование истории, и это именно та ошибка, которую сделали многие другие современные операционные системы. Самым ярки примером здесь является Windows NT(R), и последствия ужасны. Linux также в некоторой степени совершил эту ошибку-достаточно, чтобы мы, люди BSD, по крайней мере по разу отпустили по этому поводу шутку. Проблема Linux заключается просто в отсутствии опыта и истории для сравнения идей, проблема, которая легко и быстро решается сообществом Linux точно так же, как она решается в сообществе BSD-постоянной работой над кодом. Разработчики Windows NT(R), с другой стороны, постоянно совершают те же самые ошибки, что были решены в UNIX(R) десятки лет назад, а затем тратят годы на их устранение. Снова и снова. Есть несколько случаев \"проработка архитектуры отсутствует\" и \"мы всегда правы, потому что так говорит наш отдел продаж\". Я плохо переношу тех, кого не учит история." ], "id_hash": 3503886788887829682, "content_hash": 3503886788887829682, "location": "documentation/content/en/articles/vm-design/_index.adoc:81", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 9, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 324, "source_unit": "https://translate-dev.freebsd.org/api/units/615367/?format=api", "priority": 100, "id": 1811467, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=b0a04e7858d7dcb2", "url": "https://translate-dev.freebsd.org/api/units/1811467/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.453457Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "Much of the apparent complexity of the FreeBSD design, especially in the VM/Swap subsystem, is a direct result of having to solve serious performance issues that occur under various conditions. These issues are not due to bad algorithmic design but instead rise from environmental factors. In any direct comparison between platforms, these issues become most apparent when system resources begin to get stressed. As I describe FreeBSD's VM/Swap subsystem the reader should always keep two points in mind:" ], "previous_source": "", "target": [ "Большинство очевидной сложности архитектуры FreeBSD, особенно в подсистеме VM/Swap, является прямым следствием того, что она решает серьезные проблемы с производительностью, которые проявляются при различных условиях. Эти проблемы вызваны не плохой проработкой алгоритмов, а возникают из окружающих факторов. В любом прямом сравнении между платформами эти проблемы проявляются, когда системные ресурсы начинают истощаться. Так как я описываю подсистему VM/Swap во FreeBSD, то читатель должен всегда иметь в виду два обстоятельства:" ], "id_hash": -5877286600379949665, "content_hash": -5877286600379949665, "location": "documentation/content/en/articles/vm-design/_index.adoc:86", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 10, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 78, "source_unit": "https://translate-dev.freebsd.org/api/units/615369/?format=api", "priority": 100, "id": 1811468, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=2e6faef9e5309d9f", "url": "https://translate-dev.freebsd.org/api/units/1811468/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.454324Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "The most important aspect of performance design is what is known as \"Optimizing the Critical Path\". It is often the case that performance optimizations add a little bloat to the code to make the critical path perform better." ], "previous_source": "", "target": [ "Самым важным аспектом при проектировании производительности является то, что называется \"оптимизацией критического маршрута\". Часто случается, что оптимизация производительности дает прирост объёма кода ради того, чтобы критический маршрут работал быстрее." ], "id_hash": -4192121059148506934, "content_hash": -4192121059148506934, "location": "documentation/content/en/articles/vm-design/_index.adoc:88", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 11, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 38, "source_unit": "https://translate-dev.freebsd.org/api/units/1569353/?format=api", "priority": 100, "id": 1811469, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=45d2981b8604d8ca", "url": "https://translate-dev.freebsd.org/api/units/1811469/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.454985Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "A solid, generalized design outperforms a heavily-optimized design over the long run. While a generalized design may end up being slower than an heavily-optimized design when they are first implemented, the generalized design tends to be easier to adapt to changing conditions and the heavily-optimized design winds up having to be thrown away." ], "previous_source": "", "target": [ "Четкость общей архитектуры оказывается лучше сильно оптимизированной архитектуры с течением времени. Когда как обобщенная архитектура может быть медленнее, чем оптимизированная архитектура, при первой реализации, при обобщенной архитектуре легче подстраиваться под изменяющиеся условия и чрезмерно оптимизированная архитектура оказывается непригодной." ], "id_hash": 7605703704165970403, "content_hash": 7605703704165970403, "location": "documentation/content/en/articles/vm-design/_index.adoc:89", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 12, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 53, "source_unit": "https://translate-dev.freebsd.org/api/units/367959/?format=api", "priority": 100, "id": 1811470, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=e98ce338e1af71e3", "url": "https://translate-dev.freebsd.org/api/units/1811470/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.455606Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "Any codebase that will survive and be maintainable for years must therefore be designed properly from the beginning even if it costs some performance. Twenty years ago people were still arguing that programming in assembly was better than programming in a high-level language because it produced code that was ten times as fast. Today, the fallibility of that argument is obvious - as are the parallels to algorithmic design and code generalization." ], "previous_source": "", "target": [ "Любой код, который должен выжить и поддаваться поддержке годы, должен поэтому быть тщательно продуман с самого начала, даже если это стоит потери производительности. Двадцать лет назад были те, кто отстаивал преимущество программирования на языке ассемблера перед программированием на языке высокого уровня, потому что первый генерировал в десять раз более быстрый код. В наши дни ошибочность этого аргумента очевидна - можно провести параллели с построением алгоритмов и обобщением кода." ], "id_hash": -1172663613538271878, "content_hash": -1172663613538271878, "location": "documentation/content/en/articles/vm-design/_index.adoc:93", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 13, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 72, "source_unit": "https://translate-dev.freebsd.org/api/units/615371/?format=api", "priority": 100, "id": 1811471, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=6fb9dca812067d7a", "url": "https://translate-dev.freebsd.org/api/units/1811471/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.456213Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "VM Objects" ], "previous_source": "", "target": [ "Объекты VM" ], "id_hash": -5397814950238479805, "content_hash": -5397814950238479805, "location": "documentation/content/en/articles/vm-design/_index.adoc:95", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 14, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/367963/?format=api", "priority": 100, "id": 1811472, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=35171be6cfbe1a43", "url": "https://translate-dev.freebsd.org/api/units/1811472/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.456833Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "The best way to begin describing the FreeBSD VM system is to look at it from the perspective of a user-level process. Each user process sees a single, private, contiguous VM address space containing several types of memory objects. These objects have various characteristics. Program code and program data are effectively a single memory-mapped file (the binary file being run), but program code is read-only while program data is copy-on-write. Program BSS is just memory allocated and filled with zeros on demand, called demand zero page fill. Arbitrary files can be memory-mapped into the address space as well, which is how the shared library mechanism works. Such mappings can require modifications to remain private to the process making them. The fork system call adds an entirely new dimension to the VM management problem on top of the complexity already given." ], "previous_source": "", "target": [ "Лучше всего начать описание VM-системы FreeBSD с попытки взглянуть на нее с точки зрения пользовательского процесса. Каждый пользовательский процесс имеет единое, принадлежащее только ему и неразрывное адресное пространство VM, содержащее несколько типов объектов памяти. Эти объекты имеют различные характеристики. Код программы и её данные являются единым файлом, отображаемым в память (это выполняющийся двоичный файл), однако код программы доступен только для чтения, когда как данные программы размещаются в режиме копирования-при-записи. BSS программы представляет собой всего лишь выделенную область памяти, заполненную, если это требовалось, нулями, что называется обнулением страниц памяти по требованию. Отдельные файлы могут также отображаться в адресное пространство, именно так работают динамические библиотеки. Такие отображения требуют изменений, чтобы оставаться принадлежащими процессу, который их выполнил. Системный вызов fork добавляет переводит проблему управления VM полностью в новую плоскость, вдобавок к уже имеющимся сложностям." ], "id_hash": 8563897145619441028, "content_hash": 8563897145619441028, "location": "documentation/content/en/articles/vm-design/_index.adoc:105", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 15, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 140, "source_unit": "https://translate-dev.freebsd.org/api/units/615373/?format=api", "priority": 100, "id": 1811473, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=f6d9131499a0e584", "url": "https://translate-dev.freebsd.org/api/units/1811473/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.457416Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "A program binary data page (which is a basic copy-on-write page) illustrates the complexity. A program binary contains a preinitialized data section which is initially mapped directly from the program file. When a program is loaded into a process's VM space, this area is initially memory-mapped and backed by the program binary itself, allowing the VM system to free/reuse the page and later load it back in from the binary. The moment a process modifies this data, however, the VM system must make a private copy of the page for that process. Since the private copy has been modified, the VM system may no longer free it, because there is no longer any way to restore it later on." ], "previous_source": "", "target": [ "Иллюстрирует сложность страница данных двоичной программы (которая является страницей копируемой-при-записи). Двоичная программа содержит секцию предварительно инициализированных данных, которая первоначально отображается непосредственно из файла программы. Когда программа загружается в Vm-пространство процесса, эта область сначала отображается в память и поддерживается бинарным файлом программы, позволяя VM-системе освобождать/повторно использовать страницу, а потом загружать её снова из бинарного файла. Однако в момент, когда процесс изменяет эти данные, VM-система должна сделать копию страницы, принадлежащую только этому процессу. Так как эта копия была изменена, то VM-система не может больше освобождать эту страницу, так как впоследствии её невозможно будет восстановить." ], "id_hash": -1044570962678253903, "content_hash": -1044570962678253903, "location": "documentation/content/en/articles/vm-design/_index.adoc:111", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 16, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 119, "source_unit": "https://translate-dev.freebsd.org/api/units/615375/?format=api", "priority": 100, "id": 1811474, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=7180f03e6adff6b1", "url": "https://translate-dev.freebsd.org/api/units/1811474/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.458102Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "You will notice immediately that what was originally a simple file mapping has become much more complex. Data may be modified on a page-by-page basis whereas the file mapping encompasses many pages at once. The complexity further increases when a process forks. When a process forks, the result is two processes-each with their own private address spaces, including any modifications made by the original process prior to the call to `fork()`. It would be silly for the VM system to make a complete copy of the data at the time of the `fork()` because it is quite possible that at least one of the two processes will only need to read from that page from then on, allowing the original page to continue to be used. What was a private page is made copy-on-write again, since each process (parent and child) expects their own personal post-fork modifications to remain private to themselves and not affect the other." ], "previous_source": "", "target": [ "Вы тут же заметите, что то, что сначала было простым отображением файла в память, становится гораздо более сложным предметом. Данные могут модифицироваться постранично, когда как отображение файла выполняется для многих страниц за раз. Сложность ещё более увеличивается, когда процесс выполняет вызов fork. При этом порождаются два процесса-каждый со с собственным адресным пространством, включающим все изменения, выполненные исходным процессом до вызова функции `fork()`. Было бы глупо для VM-системы делать полную копию данных во время вызова `fork()`, так как весьма вероятно, что один из двух процессов будет нужен только для чтения из той страницы, что позволяет использование исходной страницы. То, что было страницей, принадлежащей только процессу, сделается снова страницей, копируемой при записи, так как каждый из процессов (и родитель, и потомок) полагают, что их собственные изменения после разветвления будут принадлежать только им, и не затронут родственный процесс." ], "id_hash": -8494902235450807947, "content_hash": -8494902235450807947, "location": "documentation/content/en/articles/vm-design/_index.adoc:118", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 17, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 157, "source_unit": "https://translate-dev.freebsd.org/api/units/1443560/?format=api", "priority": 100, "id": 1811475, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=0a1c0b6cbe486975", "url": "https://translate-dev.freebsd.org/api/units/1811475/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.458786Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "FreeBSD manages all of this with a layered VM Object model. The original binary program file winds up being the lowest VM Object layer. A copy-on-write layer is pushed on top of that to hold those pages which had to be copied from the original file. If the program modifies a data page belonging to the original file the VM system takes a fault and makes a copy of the page in the higher layer. When a process forks, additional VM Object layers are pushed on. This might make a little more sense with a fairly basic example. A `fork()` is a common operation for any *BSD system, so this example will consider a program that starts up, and forks. When the process starts, the VM system creates an object layer, let's call this A:" ], "previous_source": "", "target": [ "FreeBSD управляет всем этим при помощи многоуровневой модели VM-объектов. Исходный файл с двоичной программой переносится на самый нижний уровень объектов VM. Уровень страниц, копируемых при записи, находится выше него, и хранит те страницы, которые были скопированы из исходного файла. Если программа модифицирует страницы данных, относящиеся к исходному файлу, то система VM обнаруживает это и переносит копию этой страницы на более высокий уровень. Когда процесс разветвляется, добавляются новые уровни VM-объектов. Это можно показать на простом примере. Функция `fork()` является общей операцией для всех систем *BSD, так что в этом примере будет рассматриваться программа, которая запускается, а затем разветвляется. Когда процесс запускается, VM-система создает некоторый уровень объектов, обозначим его A:" ], "id_hash": 3508589053702886792, "content_hash": 3508589053702886792, "location": "documentation/content/en/articles/vm-design/_index.adoc:127", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 18, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 135, "source_unit": "https://translate-dev.freebsd.org/api/units/615379/?format=api", "priority": 100, "id": 1811476, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=b0b10327b0c8d588", "url": "https://translate-dev.freebsd.org/api/units/1811476/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.459500Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "A picture" ], "previous_source": "", "target": [ "Рисунок" ], "id_hash": -7986934669051171693, "content_hash": -7986934669051171693, "location": "documentation/content/en/articles/vm-design/_index.adoc:128", "context": "", "note": "type: Positional ($1) AttributeList argument for macro 'image'", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 19, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/367973/?format=api", "priority": 100, "id": 1811477, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=1128b53c2ef3ec93", "url": "https://translate-dev.freebsd.org/api/units/1811477/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.460154Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "fig1.png" ], "previous_source": "", "target": [ "fig1.png" ], "id_hash": 4278354640899387222, "content_hash": 4278354640899387222, "location": "documentation/content/en/articles/vm-design/_index.adoc:128", "context": "", "note": "type: Target for macro image", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 20, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/367975/?format=api", "priority": 100, "id": 1811478, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=bb5fc4e0d1f3af56", "url": "https://translate-dev.freebsd.org/api/units/1811478/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.460708Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "A represents the file-pages may be paged in and out of the file's physical media as necessary. Paging in from the disk is reasonable for a program, but we really do not want to page back out and overwrite the executable. The VM system therefore creates a second layer, B, that will be physically backed by swap space:" ], "previous_source": "", "target": [ "A соответствует файлу-по необходимости страницы памяти могут высвобождаться и подгружаться с носителя файла. Подгрузка с диска может потребоваться программе, однако на самом деле мы не хотим, чтобы она записывалась обратно в файл. Поэтому VM-система создает второй уровень, B, который физически поддерживается дисковым пространством подкачки:" ], "id_hash": 669767678025411190, "content_hash": 669767678025411190, "location": "documentation/content/en/articles/vm-design/_index.adoc:133", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 21, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 58, "source_unit": "https://translate-dev.freebsd.org/api/units/615381/?format=api", "priority": 100, "id": 1811479, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=894b7e2792be2a76", "url": "https://translate-dev.freebsd.org/api/units/1811479/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.461277Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "fig2.png" ], "previous_source": "", "target": [ "fig2.png" ], "id_hash": -460411412370517713, "content_hash": -460411412370517713, "location": "documentation/content/en/articles/vm-design/_index.adoc:134", "context": "", "note": "type: Target for macro image", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 22, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/367979/?format=api", "priority": 100, "id": 1811480, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=799c4a42831e912f", "url": "https://translate-dev.freebsd.org/api/units/1811480/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.461871Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "On the first write to a page after this, a new page is created in B, and its contents are initialized from A. All pages in B can be paged in or out to a swap device. When the program forks, the VM system creates two new object layers-C1 for the parent, and C2 for the child-that rest on top of B:" ], "previous_source": "", "target": [ "При первой записи в страницу после выполнения этой операции, в B создается новая страница, содержимое которой берется из A. Все страницы в B могут сбрасываться и считываться из устройства подкачки. Когда программа ветвится, VM-система создает два новых уровня объектов-C1 для порождающего процесса и C2 для порожденного-они располагаются поверх B:" ], "id_hash": -7044824120912214871, "content_hash": -7044824120912214871, "location": "documentation/content/en/articles/vm-design/_index.adoc:139", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 23, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 62, "source_unit": "https://translate-dev.freebsd.org/api/units/615383/?format=api", "priority": 100, "id": 1811481, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=1e3bc1c97fec84a9", "url": "https://translate-dev.freebsd.org/api/units/1811481/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.462450Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "fig3.png" ], "previous_source": "", "target": [ "fig3.png" ], "id_hash": -3376502860507835919, "content_hash": -3376502860507835919, "location": "documentation/content/en/articles/vm-design/_index.adoc:140", "context": "", "note": "type: Target for macro image", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 24, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/367983/?format=api", "priority": 100, "id": 1811482, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=51244089b05711f1", "url": "https://translate-dev.freebsd.org/api/units/1811482/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.463048Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "In this case, let's say a page in B is modified by the original parent process. The process will take a copy-on-write fault and duplicate the page in C1, leaving the original page in B untouched. Now, let's say the same page in B is modified by the child process. The process will take a copy-on-write fault and duplicate the page in C2. The original page in B is now completely hidden since both C1 and C2 have a copy and B could theoretically be destroyed if it does not represent a \"real\" file; however, this sort of optimization is not trivial to make because it is so fine-grained. FreeBSD does not make this optimization. Now, suppose (as is often the case) that the child process does an `exec()`. Its current address space is usually replaced by a new address space representing a new file. In this case, the C2 layer is destroyed:" ], "previous_source": "", "target": [ "В этом случае, допустим, что страница в B была изменена начальным родительским процессом. В процессе возникнет ситуация копирования при записи и страница скопируется в C1, при этом исходная страница останется в B нетронутой. Теперь допустим, что та же самая страница в B изменяется порожденным процессом. В процессе возникнет ситуация копирования при записи и страница скопируется в C2. Исходная страница в B теперь полностью скрыта, так как и C1, и C2 имеют копии, а B теоретически может быть уничтожена, если она не представляет собой \"реального\" файла). Однако такую оптимизацию не так уж просто осуществить, потому что она делается на уровне мелких единиц. Во FreeBSD такая оптимизация не выполняется. Теперь положим (а это часто случается), что порожденный процесс выполняет вызов `exec()`. Его текущее адресное пространство обычно заменяется новым адресным пространством, представляющим новый файл. В этом случае уровень C2 уничтожается:" ], "id_hash": -9136506890461498359, "content_hash": -9136506890461498359, "location": "documentation/content/en/articles/vm-design/_index.adoc:151", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 25, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 153, "source_unit": "https://translate-dev.freebsd.org/api/units/615385/?format=api", "priority": 100, "id": 1811483, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=01349b63f2223409", "url": "https://translate-dev.freebsd.org/api/units/1811483/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.463613Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "fig4.png" ], "previous_source": "", "target": [ "fig4.png" ], "id_hash": -2773987714041534585, "content_hash": -2773987714041534585, "location": "documentation/content/en/articles/vm-design/_index.adoc:152", "context": "", "note": "type: Target for macro image", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 26, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/367987/?format=api", "priority": 100, "id": 1811484, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=5980d0df0d41a787", "url": "https://translate-dev.freebsd.org/api/units/1811484/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.464265Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "In this case, the number of children of B drops to one, and all accesses to B now go through C1. This means that B and C1 can be collapsed together. Any pages in B that also exist in C1 are deleted from B during the collapse. Thus, even though the optimization in the previous step could not be made, we can recover the dead pages when either of the processes exit or `exec()`." ], "previous_source": "", "target": [ "В этом случае количество потомков B становится равным одному и все обращения к B теперь выполняются через C1. Это означает, что B и C1 могут быть объединены. Все страницы в B, которые также существуют и в C1, во время объединения из B удаляются. Таким образом, хотя оптимизация на предыдущем шаге может не делаться, мы можем восстановить мертвые страницы при окончании работы процессов или при вызове `exec()`." ], "id_hash": -3676186659215458374, "content_hash": -3676186659215458374, "location": "documentation/content/en/articles/vm-design/_index.adoc:158", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 27, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 74, "source_unit": "https://translate-dev.freebsd.org/api/units/615387/?format=api", "priority": 100, "id": 1811485, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=4cfb8fb5f16ebfba", "url": "https://translate-dev.freebsd.org/api/units/1811485/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.464823Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "This model creates a number of potential problems. The first is that you can wind up with a relatively deep stack of layered VM Objects which can cost scanning time and memory when you take a fault. Deep layering can occur when processes fork and then fork again (either parent or child). The second problem is that you can wind up with dead, inaccessible pages deep in the stack of VM Objects. In our last example if both the parent and child processes modify the same page, they both get their own private copies of the page and the original page in B is no longer accessible by anyone. That page in B can be freed." ], "previous_source": "", "target": [ "Такая модель создает некоторое количество потенциальных проблем. Первая, с которой вы можете столкнуться, заключается в сравнительно большой последовательности уровней объектов VM, на сканирование которых тратится время и память. Большое количество уровней может возникнуть, когда процессы разветвляются, а затем разветвляются ещё раз (как порожденные, так и порождающие). Вторая проблема заключается в том, что вы можете столкнуться с мертвыми, недоступными страницами глубоко в иерархии объектов VM. В нашем последнем примере если как родитель, так и потомок изменяют одну и ту же страницу, они оба получают собственные копии страницы, а исходная страница в B становится никому не доступной. такая страница в B может быть высвобождена." ], "id_hash": -3201579251021163267, "content_hash": -3201579251021163267, "location": "documentation/content/en/articles/vm-design/_index.adoc:165", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 28, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 116, "source_unit": "https://translate-dev.freebsd.org/api/units/615389/?format=api", "priority": 100, "id": 1811486, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=5391b4a2469f54fd", "url": "https://translate-dev.freebsd.org/api/units/1811486/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.465461Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "FreeBSD solves the deep layering problem with a special optimization called the \"All Shadowed Case\". This case occurs if either C1 or C2 take sufficient COW faults to completely shadow all pages in B. Lets say that C1 achieves this. C1 can now bypass B entirely, so rather then have C1->B->A and C2->B->A we now have C1->A and C2->B->A. But look what also happened-now B has only one reference (C2), so we can collapse B and C2 together. The end result is that B is deleted entirely and we have C1->A and C2->A. It is often the case that B will contain a large number of pages and neither C1 nor C2 will be able to completely overshadow it. If we fork again and create a set of D layers, however, it is much more likely that one of the D layers will eventually be able to completely overshadow the much smaller dataset represented by C1 or C2. The same optimization will work at any point in the graph and the grand result of this is that even on a heavily forked machine VM Object stacks tend to not get much deeper then 4. This is true of both the parent and the children and true whether the parent is doing the forking or whether the children cascade forks." ], "previous_source": "", "target": [ "FreeBSD решает проблему с глубиной вложенности с помощью приема оптимизации, который называется \"All Shadowed Case\". Этот случай возникает, если в C1 либо C2 возникает столько случаев копирования страниц при записи, что они полностью закрывают все страницы в B. Допустим, что такое произошло в C1. C1 может теперь полностью заменить B, так что вместо цепочек C1->B->A и C2->B->A мы теперь имеем цепочки C1->A и C2->B->A. Но посмотрите, что получается-теперь B имеет только одну ссылку (C2), так что мы можем объединить B и C2. В конечном итоге B будет полностью удален и мы имеем цепочки C1->A и C2->A. Часто B будет содержать большое количество страниц, и ни C1, ни C2 не смогут полностью их заменить. Если мы снова породим процесс и создадим набор уровней D, при этом, однако, более вероятно, что один из уровней D постепенно сможет полностью заместить гораздо меньший набор данных, представленный C1 и C2. Та же самая оптимизация будет работать в любой точке графа и главным результатом этого является то, что даже на сильно загруженной машине с множеством порождаемых процессов стеки объектов VM не часто бывают глубже четырех уровней. Это так как для порождающего, так и для порожденного процессов, и остается в силе как в случае, когда ветвление делает родитель, так и в случае, когда ветвление выполняет потомок." ], "id_hash": 8401165672617129096, "content_hash": 8401165672617129096, "location": "documentation/content/en/articles/vm-design/_index.adoc:176", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 29, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 219, "source_unit": "https://translate-dev.freebsd.org/api/units/615391/?format=api", "priority": 100, "id": 1811487, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=f496efaaff8cb488", "url": "https://translate-dev.freebsd.org/api/units/1811487/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.466119Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "The dead page problem still exists in the case where C1 or C2 do not completely overshadow B. Due to our other optimizations this case does not represent much of a problem and we simply allow the pages to be dead. If the system runs low on memory it will swap them out, eating a little swap, but that is it." ], "previous_source": "", "target": [ "Проблема с мертвой страницей все ещё имеет место, когда C1 или C2 не полностью перекрывают B. Из-за других применяемых нами методов оптимизации этот случай не представляет большой проблемы и мы просто позволяем таким страницам существовать. Если система испытывает нехватку оперативной памяти, она выполняет их выгрузку в область подкачки, что занимает некоторое пространство в области подкачки, но это все." ], "id_hash": 5007560720226111764, "content_hash": 5007560720226111764, "location": "documentation/content/en/articles/vm-design/_index.adoc:180", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 30, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 61, "source_unit": "https://translate-dev.freebsd.org/api/units/615393/?format=api", "priority": 100, "id": 1811488, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=c57e6df1a046d114", "url": "https://translate-dev.freebsd.org/api/units/1811488/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.466831Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "The advantage to the VM Object model is that `fork()` is extremely fast, since no real data copying need take place. The disadvantage is that you can build a relatively complex VM Object layering that slows page fault handling down a little, and you spend memory managing the VM Object structures. The optimizations FreeBSD makes proves to reduce the problems enough that they can be ignored, leaving no real disadvantage." ], "previous_source": "", "target": [ "Преимущество модели VM-объектов заключается в очень быстром выполнении функции `fork()`, так как при этом не выполняется реального копирования данных. Минусом этого подхода является то, что вы можете построить сравнительно сложную иерархию объектов VM, которая несколько замедляет обработку ситуаций отсутствия страниц памяти, и к тому же тратится память на управление структурами объектов VM. Приемы оптимизации, применяемые во FreeBSD, позволяют снизить значимость этих проблем до степени, когда их можно без особых потерь игнорировать." ], "id_hash": -5357844410067895347, "content_hash": -5357844410067895347, "location": "documentation/content/en/articles/vm-design/_index.adoc:184", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 31, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 70, "source_unit": "https://translate-dev.freebsd.org/api/units/615395/?format=api", "priority": 100, "id": 1811489, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=35a51ce568173bcd", "url": "https://translate-dev.freebsd.org/api/units/1811489/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.467456Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "SWAP Layers" ], "previous_source": "", "target": [ "Уровни области подкачки" ], "id_hash": -5649517746058824123, "content_hash": -5649517746058824123, "location": "documentation/content/en/articles/vm-design/_index.adoc:186", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 32, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/367999/?format=api", "priority": 100, "id": 1811490, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=3198e18ad9e5f645", "url": "https://translate-dev.freebsd.org/api/units/1811490/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.468054Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "Private data pages are initially either copy-on-write or zero-fill pages. When a change, and therefore a copy, is made, the original backing object (usually a file) can no longer be used to save a copy of the page when the VM system needs to reuse it for other purposes. This is where SWAP comes in. SWAP is allocated to create backing store for memory that does not otherwise have it. FreeBSD allocates the swap management structure for a VM Object only when it is actually needed. However, the swap management structure has had problems historically:" ], "previous_source": "", "target": [ "Страницы с собственными данными первоначально являются страницами, копируемыми при записи или заполняемыми нулями. Когда выполняется изменение, и, соответственно, копирование, начальное хранилище объекта (обычно файл) не может больше использоваться для хранения копии страницы, когда VM-системе нужно использовать её повторно для других целей. В этот момент на помощь приходит область подкачки. Область подкачки выделяется для организации хранилища памяти, которая иначе не может быть доступна. FreeBSD создает структуру управления подкачкой для объекта VM, только когда это действительно нужно. Однако структура управления подкачкой исторически имела некоторые проблемы:" ], "id_hash": 1315532285212979335, "content_hash": 1315532285212979335, "location": "documentation/content/en/articles/vm-design/_index.adoc:194", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 33, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 95, "source_unit": "https://translate-dev.freebsd.org/api/units/615397/?format=api", "priority": 100, "id": 1811491, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=9241b5a4b6ad7087", "url": "https://translate-dev.freebsd.org/api/units/1811491/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.468573Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "Under FreeBSD 3.X the swap management structure preallocates an array that encompasses the entire object requiring swap backing store-even if only a few pages of that object are swap-backed. This creates a kernel memory fragmentation problem when large objects are mapped, or processes with large runsizes (RSS) fork." ], "previous_source": "", "target": [ "Во FreeBSD 3.X в структуре управления областью подкачки предварительно выделяется массив, который представляет целый объект, требующий хранения в области подкачки-даже если только несколько страниц этого объекта хранятся в области подкачки. Это создает проблему фрагментации памяти ядра в случае, когда в память отображаются большие объекты или когда ветвятся процессы, занимающие большой объём памяти при работе (RSS)." ], "id_hash": 364383122539995788, "content_hash": 364383122539995788, "location": "documentation/content/en/articles/vm-design/_index.adoc:196", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 34, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 48, "source_unit": "https://translate-dev.freebsd.org/api/units/368003/?format=api", "priority": 100, "id": 1811492, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=850e8c84f524e28c", "url": "https://translate-dev.freebsd.org/api/units/1811492/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.469183Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "Also, to keep track of swap space, a \"list of holes\" is kept in kernel memory, and this tends to get severely fragmented as well. Since the \"list of holes\" is a linear list, the swap allocation and freeing performance is a non-optimal O(n)-per-page." ], "previous_source": "", "target": [ "Также для отслеживания памяти подкачки в памяти ядра поддерживается \"список дыр\", и он также несколько фрагментирован. Так как \"список дыр\" является последовательным списком, то производительность при распределении и высвобождении памяти в области подкачки неоптимально и её сложность зависит от количества страниц как O(n)." ], "id_hash": -4072780474139688110, "content_hash": -4072780474139688110, "location": "documentation/content/en/articles/vm-design/_index.adoc:197", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 35, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 44, "source_unit": "https://translate-dev.freebsd.org/api/units/1569355/?format=api", "priority": 100, "id": 1811493, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=477a93bcbec1c352", "url": "https://translate-dev.freebsd.org/api/units/1811493/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.469747Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "It requires kernel memory allocations to take place during the swap freeing process, and that creates low memory deadlock problems." ], "previous_source": "", "target": [ "Также в процессе высвобождения памяти в области подкачки требуется выделение памяти в ядре, и это приводит к проблемам блокировки при недостатке памяти." ], "id_hash": 415026583846586014, "content_hash": 415026583846586014, "location": "documentation/content/en/articles/vm-design/_index.adoc:198", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 36, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 20, "source_unit": "https://translate-dev.freebsd.org/api/units/368007/?format=api", "priority": 100, "id": 1811494, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=85c2787aa685069e", "url": "https://translate-dev.freebsd.org/api/units/1811494/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.470291Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "The problem is further exacerbated by holes created due to the interleaving algorithm." ], "previous_source": "", "target": [ "Проблема ещё более обостряется из-за дыр, создаваемых по чередующемуся алгоритму." ], "id_hash": 3311364613565436823, "content_hash": 3311364613565436823, "location": "documentation/content/en/articles/vm-design/_index.adoc:199", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 37, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 13, "source_unit": "https://translate-dev.freebsd.org/api/units/368009/?format=api", "priority": 100, "id": 1811495, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=adf45492595dd397", "url": "https://translate-dev.freebsd.org/api/units/1811495/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.470833Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "Also, the swap block map can become fragmented fairly easily resulting in non-contiguous allocations." ], "previous_source": "", "target": [ "Кроме того, список распределения блоков в области подкачки легко оказывается фрагментированным, что приводит к распределению непоследовательных областей." ], "id_hash": -7186834998021186633, "content_hash": -7186834998021186633, "location": "documentation/content/en/articles/vm-design/_index.adoc:200", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 38, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 14, "source_unit": "https://translate-dev.freebsd.org/api/units/368011/?format=api", "priority": 100, "id": 1811496, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=1c433ba5939a1bb7", "url": "https://translate-dev.freebsd.org/api/units/1811496/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.471350Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "Kernel memory must also be allocated on the fly for additional swap management structures when a swapout occurs." ], "previous_source": "", "target": [ "Память ядра также должна распределяться по ходу работы для дополнительных структур по управлению областью подкачки при выгрузке страниц памяти в эту область." ], "id_hash": 4076615525758908292, "content_hash": 4076615525758908292, "location": "documentation/content/en/articles/vm-design/_index.adoc:201", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 39, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 18, "source_unit": "https://translate-dev.freebsd.org/api/units/368013/?format=api", "priority": 100, "id": 1811497, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=b8930c38cab3b784", "url": "https://translate-dev.freebsd.org/api/units/1811497/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.471860Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "It is evident from that list that there was plenty of room for improvement. For FreeBSD 4.X, I completely rewrote the swap subsystem:" ], "previous_source": "", "target": [ "Очевидно, что мест для усовершенствований предостаточно. Во FreeBSD 4.X подсистема управления областью подкачки была полностью переписана мною:" ], "id_hash": 6790780388169697555, "content_hash": 6790780388169697555, "location": "documentation/content/en/articles/vm-design/_index.adoc:204", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 40, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 23, "source_unit": "https://translate-dev.freebsd.org/api/units/615399/?format=api", "priority": 100, "id": 1811498, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=de3db2c8b08b4913", "url": "https://translate-dev.freebsd.org/api/units/1811498/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.472442Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "Swap management structures are allocated through a hash table rather than a linear array giving them a fixed allocation size and much finer granularity." ], "previous_source": "", "target": [ "Структуры управления областью подкачки распределяются при помощи хэш-таблицы, а не через линейный массив, что дает им фиксированный размер при распределении и работу с гораздо меньшими структурами." ], "id_hash": 3185326950855392566, "content_hash": 3185326950855392566, "location": "documentation/content/en/articles/vm-design/_index.adoc:206", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 41, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 24, "source_unit": "https://translate-dev.freebsd.org/api/units/368017/?format=api", "priority": 100, "id": 1811499, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=ac348dfc3736bd36", "url": "https://translate-dev.freebsd.org/api/units/1811499/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.472973Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "Rather then using a linearly linked list to keep track of swap space reservations, it now uses a bitmap of swap blocks arranged in a radix tree structure with free-space hinting in the radix node structures. This effectively makes swap allocation and freeing an O(1) operation." ], "previous_source": "", "target": [ "Вместо того, чтобы использовать однонаправленный связный список для отслеживания выделения пространства в области подкачки, теперь используется побитовая карта блоков области подкачки, выполненная в основном в виде древовидной структуры с информацией о свободном пространстве, находящейся в узлах структур. Это приводит к тому, что выделение и высвобождение памяти в области подкачки становится операцией сложности O(1)." ], "id_hash": 1116449027693962317, "content_hash": 1116449027693962317, "location": "documentation/content/en/articles/vm-design/_index.adoc:207", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 42, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 46, "source_unit": "https://translate-dev.freebsd.org/api/units/368019/?format=api", "priority": 100, "id": 1811500, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=8f7e6c79b987644d", "url": "https://translate-dev.freebsd.org/api/units/1811500/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.473491Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "The entire radix tree bitmap is also preallocated to avoid having to allocate kernel memory during critical low memory swapping operations. After all, the system tends to swap when it is low on memory so we should avoid allocating kernel memory at such times to avoid potential deadlocks." ], "previous_source": "", "target": [ "Все дерево также распределяется заранее для того, чтобы избежать распределения памяти ядра во время операций с областью подкачки при критически малом объёме свободной памяти. В конце концов, система обращается к области подкачки при нехватке памяти, так что мы должны избежать распределения памяти ядра в такие моменты для избежания потенциальных блокировок." ], "id_hash": 7931565045898444070, "content_hash": 7931565045898444070, "location": "documentation/content/en/articles/vm-design/_index.adoc:208", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 43, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 48, "source_unit": "https://translate-dev.freebsd.org/api/units/1569357/?format=api", "priority": 100, "id": 1811501, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=ee129462d1ae7d26", "url": "https://translate-dev.freebsd.org/api/units/1811501/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.474040Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "To reduce fragmentation the radix tree is capable of allocating large contiguous chunks at once, skipping over smaller fragmented chunks." ], "previous_source": "", "target": [ "Для уменьшения фрагментации дерево может распределять большой последовательный кусок за раз, пропуская меньшие фрагментированные области." ], "id_hash": 990217662889969609, "content_hash": 990217662889969609, "location": "documentation/content/en/articles/vm-design/_index.adoc:209", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 44, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 20, "source_unit": "https://translate-dev.freebsd.org/api/units/368023/?format=api", "priority": 100, "id": 1811502, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=8dbdf5b7cedfc7c9", "url": "https://translate-dev.freebsd.org/api/units/1811502/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.474576Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "I did not take the final step of having an \"allocating hint pointer\" that would trundle through a portion of swap as allocations were made to further guarantee contiguous allocations or at least locality of reference, but I ensured that such an addition could be made." ], "previous_source": "", "target": [ "Я не сделал последний шаг к заведению \"указателя на распределение\", который будет передвигаться по участку области подкачки при выделении памяти для обеспечения в будущем распределения последовательных участков, или по крайней мере местоположения ссылки, но я убежден, что это может быть сделано." ], "id_hash": 7837563792822788789, "content_hash": 7837563792822788789, "location": "documentation/content/en/articles/vm-design/_index.adoc:211", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 45, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 46, "source_unit": "https://translate-dev.freebsd.org/api/units/1569359/?format=api", "priority": 100, "id": 1811503, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=ecc49ebe8faa62b5", "url": "https://translate-dev.freebsd.org/api/units/1811503/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.475098Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "When to free a page" ], "previous_source": "", "target": [ "Когда освобождать страницу" ], "id_hash": -3579756300736772617, "content_hash": -3579756300736772617, "location": "documentation/content/en/articles/vm-design/_index.adoc:213", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 46, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 5, "source_unit": "https://translate-dev.freebsd.org/api/units/368027/?format=api", "priority": 100, "id": 1811504, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=4e52269c601e45f7", "url": "https://translate-dev.freebsd.org/api/units/1811504/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.475657Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "Since the VM system uses all available memory for disk caching, there are usually very few truly-free pages. The VM system depends on being able to properly choose pages which are not in use to reuse for new allocations. Selecting the optimal pages to free is possibly the single-most important function any VM system can perform because if it makes a poor selection, the VM system may be forced to unnecessarily retrieve pages from disk, seriously degrading system performance." ], "previous_source": "", "target": [ "Так как система VM использует всю доступную память для кэширования диска, то обычно действительно незанятых страниц очень мало. Система VM зависит от того, как она точно выбирает незанятые страницы для повторного использования для новых распределений. Оптимальный выбор страниц для высвобождения, возможно, является самой важной функцией любой VM-системы, из тех, что она может выполнять, потому что при неправильном выборе система VM вынуждена будет запрашивать страницы с диска, значительно снижая производительность всей системы." ], "id_hash": 204140903070093057, "content_hash": 204140903070093057, "location": "documentation/content/en/articles/vm-design/_index.adoc:218", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 47, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 79, "source_unit": "https://translate-dev.freebsd.org/api/units/615401/?format=api", "priority": 100, "id": 1811505, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=82d54111db9ecf01", "url": "https://translate-dev.freebsd.org/api/units/1811505/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.476164Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "How much overhead are we willing to suffer in the critical path to avoid freeing the wrong page? Each wrong choice we make will cost us hundreds of thousands of CPU cycles and a noticeable stall of the affected processes, so we are willing to endure a significant amount of overhead to be sure that the right page is chosen. This is why FreeBSD tends to outperform other systems when memory resources become stressed." ], "previous_source": "", "target": [ "Какую дополнительную нагрузку мы может выделить в критическом пути для избежания высвобождения не той страницы? Каждый неправильный выбор будет стоить нам сотни тысяч тактов работы центрального процессора и заметное замедление работы затронутых процессов, так что мы должны смириться со значительными издержками для того, чтобы была заведомо выбрана правильная страница. Вот почему FreeBSD превосходит другие системы в производительности при нехватке ресурсов памяти." ], "id_hash": -1660761811070994024, "content_hash": -1660761811070994024, "location": "documentation/content/en/articles/vm-design/_index.adoc:221", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 48, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 74, "source_unit": "https://translate-dev.freebsd.org/api/units/1569361/?format=api", "priority": 100, "id": 1811506, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=68f3c9ee92943998", "url": "https://translate-dev.freebsd.org/api/units/1811506/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.476765Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "The free page determination algorithm is built upon a history of the use of memory pages. To acquire this history, the system takes advantage of a page-used bit feature that most hardware page tables have." ], "previous_source": "", "target": [ "Алгоритм определения свободной страницы написан на основе истории использования страниц памяти. Для получения этой истории система использует возможности бита использования памяти, которые имеются в большинстве аппаратных таблицах страниц памяти." ], "id_hash": -6858376981814393393, "content_hash": -6858376981814393393, "location": "documentation/content/en/articles/vm-design/_index.adoc:224", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 49, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 35, "source_unit": "https://translate-dev.freebsd.org/api/units/615405/?format=api", "priority": 100, "id": 1811507, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=20d22678e73cc5cf", "url": "https://translate-dev.freebsd.org/api/units/1811507/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.477336Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "In any case, the page-used bit is cleared and at some later point the VM system comes across the page again and sees that the page-used bit has been set. This indicates that the page is still being actively used. If the bit is still clear it is an indication that the page is not being actively used. By testing this bit periodically, a use history (in the form of a counter) for the physical page is developed. When the VM system later needs to free up some pages, checking this history becomes the cornerstone of determining the best candidate page to reuse." ], "previous_source": "", "target": [ "В любом случае, бит использования страницы очищается, и в некоторый более поздний момент VM-система обращается к странице снова и обнаруживает, что этот бит установлен. Это указывает на то, что страница активно используется. Периодически проверяя этот бит, накапливается история использования (в виде счетчика) физической страницы. Когда позже VM-системе требуется высвободить некоторые страницы, проверка истории выступает указателем при определении наиболее вероятной кандидатуры для повторного использования." ], "id_hash": 4733636345993738193, "content_hash": 4733636345993738193, "location": "documentation/content/en/articles/vm-design/_index.adoc:230", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 50, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 103, "source_unit": "https://translate-dev.freebsd.org/api/units/615407/?format=api", "priority": 100, "id": 1811508, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=c1b1412d42d5b7d1", "url": "https://translate-dev.freebsd.org/api/units/1811508/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.477870Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/articlesvm-design_index/ru/?format=api", "source": [ "For those platforms that do not have this feature, the system actually emulates a page-used bit. It unmaps or protects a page, forcing a page fault if the page is accessed again. When the page fault is taken, the system simply marks the page as having been used and unprotects the page so that it may be used. While taking such page faults just to determine if a page is being used appears to be an expensive proposition, it is much less expensive than reusing the page for some other purpose only to find that a process needs it back and then have to go to disk." ], "previous_source": "", "target": [ "Для тех платформ, что не имеют этой возможности, система эмулирует этот бит. Она снимает отображение или защищает страницу, что приводит к ошибке доступа к странице, если к странице выполняется повторное обращение. При возникновении этой ошибки система просто помечает страницу как используемую и снимает защиту со страницы, так что она может использоваться. Хотя использование такого приема только для определения использования страницы весьма накладно, это выгоднее, чем повторно использовать страницу для других целей и обнаружить, что она снова нужна процессу и подгружать её с диска." ], "id_hash": -1836524288596584530, "content_hash": -1836524288596584530, "location": "documentation/content/en/articles/vm-design/_index.adoc:235", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 51, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 107, "source_unit": "https://translate-dev.freebsd.org/api/units/615409/?format=api", "priority": 100, "id": 1811509, "web_url": "https://translate-dev.freebsd.org/translate/documentation/articlesvm-design_index/ru/?checksum=66835ae3ccd2d7ae", "url": "https://translate-dev.freebsd.org/api/units/1811509/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2025-05-25T08:24:32.478436Z" } ] }