В 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
🔻 RT @RepSteel: In March @SenTedCruz & I asked the International Olympic Committee to move the games. They refused. It's time for more of us to speak out against the #CCP. https://t.co/TkZmekMVOa@henryrodgersdc
November 03, 2021 at 03:06AM
via Twitter
@SenTedCruz
Ties Between China & Venezuela In Details
Oil & Energy
• China provided $106B in loans (2000–2023), with $17–19B still unpaid
• CNPC controls 1.6B barrels of oil reserves
• Sinopec controls 2.8B barrels of oil reserves
• Chinese firms signed 20-year oil development deals, investing $1B to raise output to 60,000 barrels/day
• Since 2016, Chinese oil investment totals $2.1B
Loans & Finance
• $60B in oil-backed loans from China Development Bank
• Venezuela received $25B for hydrocarbon projects by 2018
Military & Surveillance Support
• Aircraft: K-8W jet trainers, Y-8 transport planes
• Ground systems: armored vehicles, light tanks, military trucks
• Weapons: missiles, air-defense radar, rifles, mortars
• Satellites and digital surveillance used for internal control
Strategic Impact
Maduro’s capture would not only free Venezuela but also deal a major blow to China’s oil supply, financial exposure, and geopolitical influence, weakening the China-Russia-Iran-Venezuela axis.
#Venezuela#CCP
Mark Carney visited China a few days ago. The results don’t seem particularly impressive, and even left-leaning media outlets are expressing a noticeable sense of skepticism.
What I’m actually focusing on is that, from the very start of the election, he has appeared to have unusually close ties with the CCP. Even before the election, Canadian media had repeatedly reported on CCP influence in Canada’s electoral process.
During Mark Carney’s campaign, he somehow identified a foreign enemy and rolled out the “Elbows Up” slogan. No one knows what set Trump off, but he kept pouring fuel on the fire.
Michael Ma’s sudden party switch further highlights how evident the relationship is between, Democrats & CCP.
The reality is that Canada’s economy is heavily dependent on North America. Its EV deal with China would actually weaken domestic auto industry. That’s why, immediately, Doug Ford said he would resist Chinese EVs. It looks like Canada will continue to be trapped in a strategic dilemma.
#CCP#Chinada
#Cina#Ucraina
Come già annunciato 1 mese fa, Il Presidente #Xi Jinping (#CCP|Estrema sinistra) ha avuto una conversazione telefonica con l'omologo ucraino Volodymyr #Zelensky (#SP|RE).
Oggetto della telefonata la relazione bilaterali e il partenariato strategico fra i due paesi.
Secondo quanto riportato dall'emittente cinese CCTV, Il Presidente Xi ha ribadito che la Cina si è sempre schierata dalla parte della pace e la sua posizione centrale è quella di promuovere la pace e i colloqui. Xi ha inoltre ribadito che La Cina sostiene gli scopi e i principi della Carta delle Nazioni Unite negli affari internazionali. Nella telefonata il Presidente Zelensky si è congratulato con Xi per la sua rielezione e ha ribadito che l'Ucraina si attiene alla politica della Cina unica e che spera di realizzare una cooperazione globale con la Cina, lavorando insieme per mantenere la pace e la stabilità nel mondo.
@OsservatorioEsteri
Hong Kong’s Universities Under Tight Control
The CCP has long turned mainland universities into tools of ideological control—and now it’s doing the same in Hong Kong. Under a new accountability agreement, eight public universities must align with Xi Jinping’s remarks and national goals.
Critical thinking? That’s the last thing the CCP wants. Education is becoming indoctrination.
香港大學教育正被政治操控
中共早已將中國高校變成洗腦機器,現在同樣的模式正在香港上演。根據新問責協議,八所公立大學必須與習近平講話及國家目標保持一致。
批判性思維?這正是中共最不希望人民擁有的能力。教育正在淪為思想灌輸。
https://hongkongfp.com/2025/07/30/hong-kong-public-universities-sign-new-accountability-agreement-requiring-alignment-with-xis-remarks
#academicfreedom#CCP#FreeHK
#英文#評論
The cause of heart attack is very different in #China.
Li Keqiang passed away from a heart attack. However, many people are suspicious about his death because it is known that each retired #CCP high officials have 5 doctors following them everywhere.
🍎保留一點真相、一些堅持:
https://t.me/appledailyhk26
🍎蘋果報料熱線: @Appledailyhk_bot
🍎蘋民不蘋則鳴!2.0
https://t.me/hkerappledaily2
#國際#英文
#Hongkongers in #Canada are now proposing a Foreign Influence Transparency Registry to fight against #CCP influence in Canada. After Chinese Secret Plice Stations are exposed by the Candian Security Intelligent Service (CSIS), a lot of Canadians are concerned about the influence China has in Canada. Setting up a comprehensive system of Foreign Influence Transparency Registry is one of the most effective ways to safeguard the Canadian democratic system.
If the registration is passed, Foreign agents will need to list out their activities in the country. Hence, becoming more transparent about Foreign influences on policies within the country other than its own democratic system.
Anyone in Canada who successfully applied for Permanent Residence can sign this petition.
https://petitions.ourcommons.ca/en/Petition/Details?Petition=e-4534
🍎保留一點真相、一些堅持:
https://t.me/appledailyhk26
🍎蘋果報料熱線: @Appledailyhk_bot
🍎蘋民不蘋則鳴!2.0
https://t.me/hkerappledaily2
Today's Monday Minute focuses on yet another case of a Chinese national arrested for smuggling pathogens into the US.
What exactly is going on here?
https://drtenpenny.substack.com/p/tenpenny-monday-minute-816
#wuhan#pathogens#CCP#mondayminute#tenpenny
🔹👉🏻@SherriTenpenny
Accusing Trump’s Administration was aiming for Venezuela’s oil is simply wrong. Now that Trump might be aiming for Iraq shows that he is using the name of human right to aim at the allies bewteen #CCP, #Russia and Terrorism.
#venezuela#iraq
其實話Donald Trump係想要#委內瑞拉 嘅油係非常薄弱。而家油價喺低位,而短期內亦都見唔到油價會反彈。但係其實佢真正做緊嘅嘢係用人權嚟做理由去打擊 #中共,#俄羅斯,同埋恐怖主義國家嘅聯盟。
其實六年前已經係有人開始討論,香港係咪可以建立到同美國嘅利益掛鉤,而使到美國可以幫助香港。但係香港嘅國際線就係咁有理冇理咁樣去攻擊Donald Trump。其實嗰班香港國際戰係幫緊香港人定係害緊香港人?