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

Резултати

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

Пребарај: #solarystem

当前筛选 #solarystem清除筛选
Interesting Planet 🌍

@interesting_planet_facts · Post #1135 · 16.12.2025 г., 18:11

🌎 A year on Venus lasts 225 Earth days, but its day is even longer—one Venus rotation takes about 243 Earth days. Venus rotates backward compared to most planets, spinning in the opposite direction to its orbit. ✨ #planets⚡#astronomy⚡#solarystem 👉subscribe Interesting Planet 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #206 · 01.09.2025 г., 16:11

🪐 The distance from Earth to Proxima Centauri, the closest known star beyond our Sun, is about 4.24 light-years—a distance so vast that if you traveled as fast as New Horizons (the fastest spacecraft launched from Earth), it would take over 78,000 years to get there. Even within our own solar system, Neptune is so far from the Sun—about 4.5 billion kilometers—that sunlight takes over four hours to reach it, showing how truly immense the spaces between cosmic objects really are. ✨ #spacedistances⚡#stars⚡#solarystem⚡#nasa⚡#galaxy⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries ​

Universe Mysteries 🪐

@cosmomyst · Post #748 · 21.04.2026 г., 22:21

🪐 The giant planet Neptune radiates more energy into space than it receives from the Sun, which is surprising given its great distance from our star. Scientists think this extra heat may come from leftover warmth trapped during Neptune's formation or from slow processes deep within its icy, swirling interior, making Neptune a truly mysterious world at the edge of our solar system. ✨ #Neptune⚡#giantplanets⚡#solarystem⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #614 · 10.01.2026 г., 22:21

🪐 It takes the Voyager 1 spacecraft, humanity’s most distant probe, over 19 hours just for a radio signal to travel the 24 billion kilometers between it and Earth—showing how even within our own solar neighborhood, space distances make communication a true journey through time. Each moment spent waiting for a reply from Voyager 1 is a reminder of just how vast the spaces between worlds and stars really are. ✨ #spacedistances⚡#voyager1⚡#solarystem⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​