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

Резултати

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

Пребарај: #taiwancanhelp

当前筛选 #taiwancanhelp清除筛选

https://twitter.com/MOHW_Taiwan/status/1659920096427642880 RT @Taipei_GVA: Welcome to Geneva, Taiwan's Health Minister Dr. Hsueh Jui-yuan and colleagues for the World Health Assembly @WHO. We are excited to engage with friends around the world to discuss how we can work together towards global health goals. #TaiwanCanHelp#HealthForAll#WHA76https://t.co/IxcCI77U2d

https://twitter.com/MOHW_Taiwan/status/1659167647349735424 Taiwan #WorldHealthActionTeam is about to set off!Let’s make the world healthier, and fairer together. Taiwan should not be left behind.Follow us on the Facebook or twitter, and join the hashtag campaign to support Taiwan's participation in the WHA!#TaiwanCanHelp#LetTaiwanInhttps://t.co/n4Q8Z3oFBZ

https://twitter.com/MOHW_Taiwan/status/1643771793629663233 RT @TAIWANmoda: Watch @audreyt's stirring #SummitForDemocracy address. Learn how #TaiwanCanHelp galvanize global action on addressing common challenges, boosting digital resilience & collaborating across ideological divides. Read the #Taiwan🇹🇼-endorsed #S4D Declaration. ▶️https://t.co/2GHlmVOjTXhttps://t.co/227h643EuR

https://twitter.com/MOHW_Taiwan/status/1640152480263831552 RT @TW_Eswatini: Miles of smiles at #Taiwan Medical Mission's outreach clinic in #Lamgabhi. A record number of residents enjoyed 1st-class treatment & leading-edge public health education at the daylong event. #TaiwanCanHelp🇹🇼 true friend & partner in prosperity #Eswatini🇸🇿 achieve #HealthForAll! https://t.co/uzKmnXh9SG

https://twitter.com/MOHW_Taiwan/status/1644232360467247105 Minister Hsueh of MOHW calls out "Health for all in Taiwan" to celebrate #WorldHealthDay. Taiwan’s National Health Insurance program is a great model for #UHC, providing quality health care to all residents at affordable costs. #HealthForAll#TaiwanCanHelp#WHD2023https://t.co/Hwx2XFg4lE