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

Резултати

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

Пребарај: #letter

当前筛选 #letter清除筛选
Pensive|

@PensivePost · Post #4889 · 07.02.2021 г., 23:34

Dear Love, I was passing thru a tunnel, deep, long, dense and drk tunnel full of the pain and agony, freaking and frustrating. It seems there was no end to this tunnel. In despair, i approached you, took your name, imagined your smile! And to my surprise, now the tunnel has ended. A bright beam of the light showing me a path ahead. Love, smiles, happiness all what I wished ahead. It feels like you filled my path with the sun light. Yes jaan, indeed you are the sunshine for me. And Love you love, for being there as bright light for me. Love you love, for bringing lots of happiness for me. Love you love, for gifting me the infinite togetherness. Love you 💕💕💕 #letter #review

Pensive|

@PensivePost · Post #5242 · 30.05.2021 г., 05:06

To the first friend, I made You are the reason to feel and realise what friendship is and how it feels. You brought happiness to my life. You were possessive on me. You were sad when i wasn't talk with you. You motivated me. You stood by my side. You were the one who scold when I do something wrong. I never thought that you left me and found a new best friend(s) But they love you more than me. I wish you to be happy and loved always not to be with me. We still communicate now and then. But not with the same Friendship just like a stranger. You fought with others to sit near with me but now you get over me and sit in other place even when there is no competition. I'm accepted the reality. I appreciate your choice of leaving me and get more loyal, true, lovely friends. I still hope you didn't forget my friendship with you #letter#review#friendshipbreakup