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

Резултати

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

Пребарај: #trustinallah

当前筛选 #trustinallah清除筛选
Notes I Never Shared 🌱

@notesinevershared · Post #76 · 28.08.2025 г., 20:22

🇺🇿🔄 #17 — Musofirlik sari birinchi qadam Hayotimda birinchi marta samolyotga chiqib, musofirlik sari yo‘l oldim...🥲 Ko‘pchilik bu qarorimni eshitganda, meni tentak deb o‘yladi😁"Nima? Boshqa yurtda, tanimagan joyda, atigi $380 oylik bilan qanday yashaysan?" deb hayron bo‘lishdi. Lekin men ortga qaramadim. Sababi: bu qarorim — boylik uchun emas, orzu uchun, oila uchun, yaxshi hayot uchun edi. Tavakkal qildim. Harakat qildim. Allohga suyanib yo‘lga chiqdim. Bugun qarasam, o‘sha samolyot — hayotimdagi eng katta burilish bosqichi bo‘lgan ekan🙂 “Kim Allohga suyanib ish tutsa, U unga kifoya qiladi.”(Surah At-Talaq 65:3) Va ha, usha oyat yana bir bor — har doimgidek — o‘zini oqladi.💫 🇬🇧🔄 #17 — The First Step into Expat Life For the first time in my life, I boarded a plane and left for a new chapter…🥲 Many people thought I was crazy when I accepted a job offer to work in the UAE. “What? How will you survive in a foreign country on just $380 salary?” They genuinely questioned me. But I didn't look back. Because this step wasn’t for wealth — it was for my dream, for my family, and to build a better life. I took a leap of faith. I trusted Allah and moved forward. Now that I look back, that plane ride was one of the biggest turning points of my life. “And whoever relies upon Allah — then He is sufficient for him.”(Surah At-Talaq 65:3) And yes — that verse once again proved itself true, just like always.💫 #EverythingILived#Post17#ExpatJourney#FaithOverFear#TurningPoint#TrustInAllah

Notes I Never Shared 🌱

@notesinevershared · Post #69 · 28.08.2025 г., 19:20

🔄🇺🇿 #15 — 4 Kun ichida 3 ish taklifi: Hayotimdagi yangi bosqich Oradan 4 kun o‘tgach, men topshirgan Birlashgan Arab Amirliklaridagi kompaniyalardan menga qo‘ng‘iroq bo’ldi. Ular intervyu o‘tkazishdi. Tez orada 3 ta ish taklifini oldim. Qanday ish deb qiziqayotgan bo‘lsangiz, offitsiant (waiter)— bu ishga kirish va ketish uchun eng oson yo‘llardan biri. Bu jarayon menga sabr, qat’iyat va Allohga tavakkul qilishning ahamiyatini yana bir bor eslatdi. Harakat qilmasdan, faqat orzu qilish bilan hech narsaga erishib bo‘lmaydi. Har bir qadam, har bir qaror — bu yangi imkoniyatlarga yo‘l ochadi. 🔄🇬🇧 #15 — 3 Job Offers in 4 Days: A New Chapter Begins Just three days later, I received a call from the companies I had applied to in the United Arab Emirates. They conducted an interview, and soon after, I received three job offers. Curious about the role? It's a waiter position — one of the easiest entry points into the job market there. This experience reminded me of the importance of patience, determination, and placing trust in Allah. Simply dreaming without taking action leads nowhere. Every step, every decision opens doors to new opportunities. #EverythingILived#TrustInAllah#Action#Dua#Dreams#Dubai#NewChapter