В 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
♻️FEEDING GUIDE ON BROILER CHICKS
✅Starter Feed (0-3 weeks):
The starter feed is designed to provide the energy and
protein necessary for rapid growth during the first few
weeks of a broiler's life. It's typically higher in protein content
to support muscle and feather development.
✅Here's a typical formulation for starter feed:
Maize (Corn): 50-60% — Provides energy.
Soybean Meal: 25-30% — Rich in protein for growth.
Fish Meal/Meat Meal: 5-10% — Additional protein to boost
growth.
Wheat Bran: 5% — Source of fiber and micronutrients.
Limestone: 1-2% — Ensures proper bone development.
Dicalcium Phosphate: 1-2% — Provides phosphorus and
calcium for bone health.
Salt: 0.2-0.3% - Maintains electrolyte balance.
Vitamin and Mineral Premixes: As per manufacturer's
guidelines for the required nutrients.
Probiotics and Enzymes: 0.5-1% — Improves digestion and
nutrient absorption.
✅Grower Feed (3-6 weeks):
The grower feed formulation is slightly lower in protein than
the starter feed but still maintains enough protein to support
continued growth and muscle development.
♻️Typical grower feed formulation:
Maize (Corn): 55-65% — Provides energy for continued
growth.
Soybean Meal: 20-25% — Protein for muscle development.
Sunflower Meal: 5-10% — Additional protein source and
enhances digestibility.
Rice Bran: 5-10% — Provides energy and fats for increased
growth rate.
Wheat Bran: 2-5% — Fiber for digestion.
Limestone: 1-1.5% — Calcium for bone health.
Dicalcium Phosphate: 1-1.5% - Balanced phosphorus and
calcium.
Salt: 0.2-0.3% — Electrolyte balance.
Vitamin and Mineral Premixes: According to manufacturer
guidelines.
Probiotics and Enzymes: 0.5-1% — Support gut health and
nutrient absorption.
♻️Finisher Feed (6 weeks until market):
The finisher feed focuses on providing the final boost in
weight gain and ensures that broilers reach market weight
efficiently. It contains less protein than the grower feed, as
the chickens are now focusing more on fat deposition
#Dr.Amanuel
https://t.me/starvetbooks