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

Резултати

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

Пребарај: #allaboutbuses

当前筛选 #allaboutbuses清除筛选
SG MRT Updates

@sgmrt · Post #2230 · 22.01.2025 г., 03:44

Train services on the North-South, East-West, Circle & Thomson-East Coast Lines, and some bus services will be extended for commuters travelling late on the eve of Chinese New Year, 28 Jan (after midnight). See poster for more info.🧧#SMRT#AllAboutTrains#AllAboutBuseshttps://bit.ly/4g6JEzO - SMRT

SG MRT Updates

@sgmrt · Post #1947 · 31.05.2024 г., 02:09

Train services on the North-South, East-West, Circle & Thomson-East Coast Lines, and some bus services will be extended for commuters travelling late on the eve of Hari Raya Haji, 16 Jun 2024 (after midnight). Ref to the poster for more info. #SMRT#AllAboutTrains#AllAboutBuseshttps://bit.ly/4bWEkx9 - SMRT

SG MRT Updates

@sgmrt · Post #1902 · 04.04.2024 г., 02:29

Train services on North-South, East-West, Circle & Thomson-East Coast Lines, and some bus services will be extended for commuters travelling late on eve of Hari Raya Puasa, 9 Apr 2024 (after midnight). Ref to the poster for more info. #SMRT#AllAboutTrains#AllAboutBuseshttps://bit.ly/3vLtQRF - SMRT

SG MRT Updates

@sgmrt · Post #1864 · 11.12.2023 г., 09:05

Train services on the 🚆 North-South, East-West, Circle & Thomson-East Coast Lines, and some 🚍 bus services will be extended for commuters travelling late during the eve of Christmas and New Year. See the poster for more info. #SMRT#AllAboutTrains#AllAboutBuseshttps://bit.ly/3NjRnyE - SMRT

SG MRT Updates

@sgmrt · Post #1709 · 24.04.2023 г., 10:45

Train services on the 🚊 North-South, East-West, Circle & Thomson-East Coast Lines, and some 🚍 bus services will be extended for commuters travelling late on the eve of Labour Day, 30 April 2023. Refer to the poster for more info. 👀#SMRT#AllAboutTrains#AllAboutBuseshttps://bit.ly/41RQZwf - SMRT

SG MRT Updates

@sgmrt · Post #1583 · 05.01.2023 г., 05:16

Train services on the 🚆 North-South, East-West, Circle & Thomson-East Coast Lines, and some 🚍 bus services will be extended for commuters travelling late on the eve of Chinese New Year. 🧧 Refer to the poster for more info! 👀#SMRT#AllAboutTrains#AllAboutBuseshttps://bit.ly/3igIWI8 - SMRT

SG MRT Updates

@sgmrt · Post #1563 · 09.12.2022 г., 09:28

Train services on the 🚆 North-South, East-West, Circle & Thomson-East Coast Lines, and some 🚍 bus services will be extended for commuters travelling late during the eve of Christmas and New Year. Refer to the poster for more info!🥳#SMRT#AllAboutTrains#AllAboutBuseshttps://bit.ly/3uDtXe8 - SMRT