В 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
🆘
⚠️
⚠️
⚠️
⚠️
⚠️
🔔PARTNERSHIP ANNOUNCEMENT
We're pleased to announce our Big Partnership "FFC"
🔠
🔠
🔠
🔠
🔠
🔠
🔠
🔠
🔠
🔠
🔠
🔽We are excited to announce an partnership with #FFC
Force Finance Coin is your gateway to borderless decentralized finance (DeFi). Seamlessly access liquidity pools, yield farming, and secure blockchain transactions in one powerful platform. Designed for scalability, efficiency, and financial freedom.
🚀 Trade. Earn. Grow.
🔗 Start now: forcefinancecoin.com
#ForceFinance#DeFi#CryptoEarning#Blockchain
⏰ Must JoinCrypto Fight Community :
✉️Telegram |
✉️Channel |
📝Twitter |
🔶Binance Live |
*️⃣Linktree
💥If You Want To Promote Your Project Or AMA Proposal
📞DM @Ryan_Fight
In a matter of days, @gazafreedomflotilla and @thousandmadleenstogaza will launch the next wave of civilian ships to Gaza. We sail because world powers enable Israel’s illegal siege. We sail to break it, to expose systems that uphold Israel’s war crimes, and to affirm the rights of the Palestinian people.
Follow the flotilla, share our updates, and never stop amplifying stories from Gaza.
#freedomflotilla#ffc#thousandmadleens#gaza#palestine#breakisraelssiege
@freedomflotillacoalition and @thousandmadleenstogaza are joining forces as one flotilla to challenge Israel’s illegal and inhumane blockade of Gaza.
Our shared mission is rooted in solidarity and justice, standing with the Palestinian people in their struggle for freedom.
Like every past mission, this flotilla is a civil intervention against Israel’s 18-year long illegal blockade on Gaza—which has now been used to manufacture a famine—and a demand for accountability.
We sail because governments and corporations remain complicit in Israel’s occupation, apartheid, and genocide.
All eyes on Palestine 🇵🇸
#freegaza#freepalestine#alleyesongaza#alleyesonpalestine#endtheblockade#freedomflotillacoalition#FFC#thousandmadleenstogaza
Cutting off oil exports to Israel could end their genocidal rampage in Gaza—but U.S. companies like Valero Energy Corporation are still profiting from the slaughter, which is a direct violation of international law, according to legal experts. In addition to our years of sailing to challenge and end the illegal and inhumane Israeli blockade of Gaza, the Freedom Flotilla Coalition is joining with the No Harbour for Genocide campaign. With these and other organisations, we are working collectively to make sure those fuel shipments are blocked and to demand accountability. Boycott companies like Valero, Texaco, Diamond Shamrock, Barclays, Norges, KLP, Nordea, BNP, Axa and many more. Every dollar counts, every supply line disrupted matters. Stand with us to stop Israel's war on Palestinians. Share this video and inform your friends. #NoHarbourForGenocide#BoycottValero#FreePalestine#ValeroEnergy#FreeGaza#WarCrimes#FFC#FreedomFlotilla
The demonstration to release our Flotilla ships currently being prevented from leaving port by the Turkish Port Authorities, continues in Istanbul. We need your help in getting international media to cover this historic protest and help put pressure on the government to release our ships, ensuring we can sail towards Gaza.
HOW TO HELP:
1. Call, email and/or demonstrate at Turkish embassies and consulates and demand that the Freedom Flotilla ships be released and allowed to deliver aid to Gaza immediately.
2. Tag mainstream accounts in this post or when you share our photos to your stories.
3. Message the social media page of the Ministry of Transport and Foreign Affairs @tcdisisleri and @uabakanligi on IG and on X
4. Share our videos using the hashtags #WeWillSail and #LetThemSail tagging @tcdisisleri and @uabakanligi
#WeWillSail#LetThemSail#TheFreedomFlotilla#FFC#Istanbul#Turkiye#Turkey#MaviMarmara
UN experts warned months ago that Israel is deliberately starving Palestinians, and that famine is rapidly spreading across Gaza, and yet Israel continues with impunity and is sent billions of dollars by the US. Children, infants, pregnant women, people living with disabilities, the elderly and those with chronic illnesses are the most at risk of severe malnutrition, illness, and death. Mobilize today, and continue boycotting products and companies that support these war crimes. #freegaza#freepalestine#endtheoccupation#humanitarianaid#costofliving#northgaza#gazacity#freedomflotilla#ffc#breakthesiege#endtheblockade
#BDS
* prices are in US dollars
Our objectives—to break the blockade and raise awareness of the genocide against Palestinians in Gaza—remain unchanged. We will provide updates on our next departure when we are ready to sail again.
In the meantime, we urge you to join the #NoHarbourForGenocide campaign to take action against the siege on Gaza by opposing every country and company complicit in this genocide. #handala#ffc#freedomflotillacoalition#freegaza#freepalestine#endtheoccupation#breakthesiege#endtheblockade#iof#warcrimes#icc#icj
Despite relentless police brutality and state repression in Germany, Yasemin, a Kurdish-Turkish activist on the 'Handala' ship, remains unwavering in her fight for Palestinians. Born into resistance, she fearlessly confronts oppression, transforming each attempt to silence her into fuel to continue fighting for justice. Her steadfast belief in direct action and the power of collective resistance is undeterred by the dangers she has faced, which led her to join 'Handala'. Yasemin encourages all of us watching to disrupt capital and profits in order to create effective change. Download the No Thanks app, search every product before buying it, and boycott companies that support Zionism and Israel’s war crimes against Palestinians. We are never just one person. Together, it is possible to speak their language and hit them where it hurts - their wallets. #endtheoccupation#freegaza#freepalestine#endtheblockade#breakthesiege#freedomflotilla#ffc#yaseminacar#handala#berlin#bds#boycott#divest#sanction
This election is not just about what happens within U.S. borders—it’s about the lives of millions around the globe. When you vote, you’re making a statement about where America stands on human rights. History has shown us that you cannot negotiate with leaders who offer nothing but empty promises. Kamala Harris herself said, "Never let anyone tell you who you are. Show them who you are." Well, the Biden-Harris administration has shown us who they are. For ten months, they’ve done nothing but fund the annihilation of Gaza and the West Bank.
We cannot accept these empty words when hundreds of thousands of lives are at risk. It’s time to demand real action, not just lip service. Sign the petition to enact an arms embargo on Israel, spread the truth in your community, and mobilize for the sake of humanity.
Take Action Now:
🖋️ Sign the Petition: Not Another Bomb! Demand an arms embargo to stop the genocide (in our stories)
📰 Stay Informed: Join the Uncommitted Movement and tell Kamala Harris to stand on the right side of history. Sign up for updates.
🗣️ Spread the Word: Distribute flyers, educate your community, and support candidates who truly stand for human rights.
#KillerKamala#BidenHarris#USElections#DNC#ActForGaza#EndTheOccupation#NoMoreEmptyPromises#FreeGaza#FreePalestine#PermanentCeasefire#UNSecurityCouncil#GlobalImpact#FFC#FreedomFlotilla