@QuietWorld · Post #6423 · 01.05.2019 г., 03:12
#selfreminder@quietworld🍃
Hashtags
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
Пребарај: #selfreminder
@QuietWorld · Post #6423 · 01.05.2019 г., 03:12
#selfreminder@quietworld🍃
Hashtags
@QuietWorld · Post #6302 · 26.03.2019 г., 12:55
so think good thoughts. try, even when it could be hard sometimes. #selfreminder@quietworld🍃
Hashtags
@QuietWorld · Post #7568 · 21.08.2020 г., 15:47
It's better to be alone than to be with a bad company. Don't settle for anything less than you deserve. Know your worth 😊 #thoughts#selfreminder @quietworld🍃
Hashtags
@QuietWorld · Post #7507 · 17.07.2020 г., 02:54
Bila kau baru mula bekerja, semalu mana dan serendah diri mana kau rasa pun, anxiety mcm mana pun, beranikan diri bertanya banyak bila tidak tahu sesuatu, itu la privilege jd orang baru. Semalu mana kau rasa untuk bertanya waktu masih baru, bayangkan kalau sudah lama bekerja masih bertanya banyak walaupun berkaitan hal yg lama? Pilih mana satu ☺ #thoughts#selfreminder @quietworld🍃
Hashtags
@QuietWorld · Post #7419 · 17.06.2020 г., 07:31
Quick reminder: don't compare your life to others too much. We grow and learn at different pace. ☺ #thoughts#selfreminder @quietworld🍃
Hashtags
@QuietWorld · Post #7277 · 20.04.2020 г., 05:12
I still have me. Don't lose yourself to anyone. There's no use to have a lot of people in your life at the price of losing yourself – because what's the point of having everyone in your life but not having yourself? Don't be afraid to lose people. Instead, be willing to lose people when you need to. #thoughts#selfreminder @quietworld🍃
Hashtags
@QuietWorld · Post #7255 · 07.04.2020 г., 08:44
Have you ever been in a situation in which you really want to forgive, but your heart can't forgive yet because it still hurts? You really want to forgive but you know you haven't because your heart still aches. & it hurts you more because you still can't forgive. Take your time. Be gentle to your heart. Don't treat your heart like how anyone else treat it. #thoughts#selfreminder@quietworld🍃
Hashtags
@QuietWorld · Post #7062 · 12.12.2019 г., 02:11
Tbh, you don't have to be the most knowledgable person in the world or anywhere. Knowing that you don't know about somethingyou need to know about and able to decide and take action to find out more about it is enough to help you go a long way. It's just that simple. Remember that. #thoughts#selfreminder @quietworld🍃
Hashtags
@QuietWorld · Post #6977 · 26.11.2019 г., 03:40
Don't give more to other people than you give to yourself. Don't be too loyal to other people that you betray yourself. #selfreminder#life @quietworld🍃
Hashtags
@QuietWorld · Post #6922 · 17.11.2019 г., 04:58
cc: theawkwardyeti #life#selfreminder @quietworld🍃
Hashtags
@QuietWorld · Post #7583 · 07.09.2020 г., 00:28
#motivation#selfreminder @quietworld🍃
Hashtags
@QuietWorld · Post #6961 · 23.11.2019 г., 14:42
#motivation#selfreminder @quietworld🍃
Hashtags