В 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
💣The Largest DeFi Airdrop Event in History on TON is here!
Are you ready?✨ A total of over 10,000,000+ $PIX will be distributed and we are happy to remind everyone that DEX tokens have significant value. This airdrop event brings you incredible reward opportunities, and what’s even better is that everyone has a chance to win rewards. Whether you are new to the TON ecosystem or a veteran of TON DeFi, this event invites all influencers to shape the future of TON DeFi with PixelSwap.
Here is the instruction how to participate and increase your chances: Read the article
📖
#DeFi#Airdrop#DEX#TON#PixelSwap
💎PixelSwap — The First Weighted Pool DEX on TON
#PixelSwap is a distinguished modular #DEX built on the #TON blockchain. Audited by a leading global agency, PixelSwap prioritizes smart contract security as a cornerstone of the project, demonstrating this commitment through significant advancements in security infrastructure.
PixelSwap's innovative layered architecture supports a variety of algorithms, including weighted pools and LBP launches. Moreover, PixelSwap facilitates atomic transactions, enabling the execution of complex DeFi scenarios. The team aspires to be one of the most secure projects in the #DeFi space and to contribute to the overall security development of the TON ecosystem.
💎PixelSwap x 🍅Tomarket
Recently #PixelSwapbecomes a partner of Tomarket, the incentive-driven platform guiding Web2 users seamlessly into Web3 through gaming, earning, and trading!
😄 With over 42M users and 12M connected wallets, #Tomarket is redefining the Web3 experience by offering an all-in-one ecosystem where users can engage in games, earn tokens through activities, and trade assets across multiple chains — all on a single platform.
💱 By combining PixelSwap's advanced liquidity and trading solutions with Tomarket’s extensive user base, they are set to deliver a powerful ecosystem that enables users to not only swap but also access meaningful rewards and explore deeper engagement opportunities. This collaboration creates an ideal path for users to learn, earn, and stay involved in #Web3.
The $PIX Token #TGE in Q4 2024!
The team has set aside a substantial allocation of $PIX tokens for the community! Be sure to follow @PixelSwap_io and join the community for the latest updates on the Pre-TGE Airdrop Arena!
💎$PIX token serves as the utility token for #PixelSwap, the only modular #DEX that supports both Weighted Pools and Atomic Swaps on #TON.
Join ⚔️Pixel Airdrop Arena and stay tuned for more updates!
Official Links⬇️
🔗LayerPixel: Website | X | Channel | Community | Medium | Bot
🔗PixelSwap: Website | X | Channel | SWAP | Pool
🔗PixelDAO: X | Forum | Chat
⏺PixelSwap Farming Pool in🍅Tomarket
#PixelSwap recently partnered with the well-known social platform Tomarket, which allows Web2 users to easily transition to Web3 through games, earnings and trading.
There is a new farming pool available in 🍅#Tomarket app where you can get a share of $PIX depending on how much $TOMA you contribute to the pool. The pool starts tomorrow at 10:00 UTC🕓
✖️Use TOMA to get PIX!
#TOMA#PIX#earn#farming