В 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
ℹ️How Callegram Business Works Right Now
In previous post we told you how to setup a Callegram Business account. Today we're sharing with you what you'll get after new status:
⚙️Notifications Settings. When your customer will book a call, you can setup a specific time presets for notifications. To find all notification settings you can view Profile section inside @CallegramBot Mini App;
💬Automated Replies. At this moment your schedule is sent when your customer asks you about it. If in customer's questions will contain these words: «Schedule, Appointment, Booking, Book» — @CallegramBot will send your schedule instantly. Check the video above to see how it works.
Ask us anything about Callegram Business and we will help you!
#CallegramBusiness#MiniApps#Business
ℹ️How to Setup Callegram Business
1. Open Telegram settings;
2. Tap on «Telegram Business» button;
3. Find «Chat Bots» section;
4. Enter CallegramBot into special field and tap on the button «Add»
✔️ Done. Now your Callegram profile is in Business mode.
⚙️ Don't forget to setup your working hours in Telegram Business menu.
#CallegramBusiness#Business#MiniApps
🤫Page Of Businesses
Users, are you ready to make appointments in a few clicks?
Businesses, are you ready to provide your services seamlessly?
🙂 Stay tuned
#Appointments#MiniApps#Business#CallegramBusiness
👍 Make Us Better
We've been growing fast and we want to give you the best experience if you use @CallegramBot.
We've sent a special feedback form to all our Business users. If you want to help us make Callegram better, please fill in the form below:
🔗https://t.me/CallegramBot/feedback
P.S. Don't forget share with us your the most desirable function
#TelegramBusiness#CallegramBusiness#MiniApps#Web_Apps