TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #335 · 29 мар.

В Linux стандартными средствами можно использовать часть оперативной памяти как диск. Для этого требуется указать тип монтирования tmpfs в команде mount mount -t tmpfs -o size=5G tmpfs /mnt/ram Теперь путь /mnt/ram можно использовать как обычный каталог. Для чего это может быть нужно? ▫️ Скорость работы с таким каталогом выше чем многие SSD и тем более HDD. ▫️ Если у вас очень быстрый SSD на NVMe M.2 то такой способ особо не прибавит вам скорости, но поможет сохранить ресурс SSD когда требуется обрабатывать очень много мелких файлов и оперативка позволяет выделить нужный объем. ▫️ Оперативка это энергозависимая память, поэтому выключении питания все файлы безвозвратно теряются. Такой "non persistent" каталог гарантирует удаление временных файлов. Я написал небольшой скрипт для условного теста и сравнения скорости копирования файлов между SSD и RAM. Вот мои результаты: Single File Size: 30.0Gb ssd > ssd: 0:00:12.850 / 2.3Gb/s sdd > ram: 0:00:06.453 / 4.6Gb/s ram > ram: 0:00:06.995 / 4.3Gb/s ram > sdd: 0:00:06.217 / 4.8Gb/s Dir size: 32.7Gb, File count: 11127 ssd > ssd: 0:00:15.063 / 2.2Gb/s sdd > ram: 0:00:08.486 / 3.9Gb/s ram > ram: 0:00:08.032 / 4.1Gb/s ram > sdd: 0:00:07.026 / 4.7Gb/s Скрипт для теста ↗️ На моём железе прирост скорости ~2x. Плюс экономия ресурса SSD. В Windows такой фишки по умолчанию нет, но обязательно найдутся аналогичные решения #linux#triks

Hashtags

Резултати

Пронајдени 2 слични објави

Пребарај: #cfmoller

当前筛选 #cfmoller清除筛选

Large-scale transformation and adaptive re-use in Oslo🇳🇴 Images of the new proposal for Oslo Horizon - KLP’s high-rise hub - submitted to PBE / Oslo planning authority. The scheme seeks to transform a former post office terminal into a new gateway to Oslo central stations rail platforms, and creating a commercial multi-tenant office hub w.3500 workspaces, a hotel/ conference centre, foodcourt and cafe + over 3000 cycle parking spaces. Between tree branches in an extensive green roofscape the public can experience panoramic views of the Oslo Fjord and biodiversity in the heart of Oslo. Oslo Horizon will be one of the Norway’s largest and most ambitious transformation projects, pioneering applications of re-use and recycling on an international scale. Made by CF Moller Architects in collaboration with: kristin jarmund architects androdeo arkitekter. #architecture#cfmoller#cfmollerarchitects#archilovers#improveLifeforPeopleandPlanet#dezeen#archdaily#oslo#norway#arch_shovel

The Heart in Ikast. The Heart combines education, activities, community, exercises and recreational pursuits in new ways, with buildings and outdoor areas designed to promote inclusive and integrative social and cultural meetings and gatherings. 📸 Adam Mork Architecture by CF Moller #cfmoller#cfmollerarchitects#improvelifeforpeopleandplanet#theheartinikast#greenarchitecture#arkitektur#architecture#arkitekt#nordicarchitecture#arch_shovel