В 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
http://twitter.com/norabar/status/955439334617952264
🐦 Tweet (o retweet) de @norabar
__________
#Shutdown en los EEUU en la ciencia: podría hacer desvanecer los subsidios, atrasar los lanzamientos y arruinar experimentos https://t.co/Okci6ONLfF — Nora Bär (@norabar) January 22, 2018
💥⛔️🇺🇸#shutdown#сша
Палата проголосовала ЗА продление финансирования правительства, чтобы избежать длительного шатдауна.
Документ отправляется на подпись Трампу.
После подписи Трампа шатдаун будет завершен.
mt в max
The party at Mar-a-Lago in the style of the "Great Gatsby" was held under the slogan “A little party never killed nobody”. And all this against the background of the shutdown, the termination of payment of salaries to civil servants and social benefits.
#Trump#Shutdown
👂More on Trump's Ear
⚠️
🚨🏛️ DHS SHUTDOWN DRAGS ON — WHITE HOUSE SENDS NEW OFFER TO DEMOCRATS
🔹 DHS has been shut down since Feb 14 over ICE reform demands — no end in sight 🚫
🔹 Democrats want body cameras, mask bans & judicial warrants for ICE agents 📋
🔹 Senate blocks DHS funding bill TWICE — White House says "Democrats need to move" ⚡
Government employees caught in the crossfire while politicians play chicken 😤🔥
#USNews#politics#shutdown
@america
How concerned are Americans about the partial shutdown of the federal government and whom do they blame for causing it? The Washington Post texted a nationally representative sample of 1,010 people on Wednesday to ask.
The Post’s poll finds significantly more Americans blame President Donald Trump and congressional Republicans for the shutdown than Democrats, though many say they are not sure. People express moderate concern about the shutdown’s impact at this early stage, with “somewhat concerned” the most common answer. A large majority support Democrats’ call to extend federal health insurance subsidies in general, though just under half support the party demanding this if it extends the government shutdown.
#Shutdown#Poll
👂More on Trump's Ear ⚠️
The US is on track to face "one of the longest" government shutdowns in its history unless Democrats agree to pass a funding bill, House Speaker Mike Johnson warned Monday.
Speaking at a news conference on the 13th day of the shutdown, Johnson blamed the ongoing impasse on Democratic "obstruction," saying their refusal to compromise is pushing the country toward a prolonged stalemate.
"This would be the third longest government shutdown in American history," he told reporters on Capitol Hill.
"We’re barreling toward one of the longest shutdowns in American history, unless Democrats dropped their partisan demands and passed a clean, no-strings-attached budget to reopen the government and pay our federal workers," he added.
The Speaker emphasized that Republicans are willing to negotiate on full-year appropriations and other pressing legislative matters, but only under transparent conditions.
"Republicans are eager to return to the actual negotiating table to finish out full year appropriations and do work on all the other matters before us, but we won't negotiate in smoke-filled back rooms, and we won't negotiate as hostages," he said.
#Shutdown#Congress
👂More on Trump's Ear ⚠️
Rep. Marjorie Taylor Greene🗳️ slammed her fellow Republicans, including President Donald Trump ➡️, frustrated by their inaction on addressing the soaring cost of living. 😤
The Georgia Republican called out Trump’s claims that inflation and grocery prices are going down. ✨
“No. I go to the grocery store myself. Grocery prices remain high. Energy prices are high,” Greene, 51, told CNN’s The Source host Kaitlan Collins. 🍅🚙
#GOP#Shutdown
👂More on Trump's Ear
🏛️🚫CONGRESS DEADLOCKS: DHS SHUTDOWN DRAGS INTO MONTH TWO
🔹 Department of Homeland Security shutdown since Feb 13 - nearly 1 month 📅
🔹 House GOP bill passed 221-209 with only 4 Democrats - dies in Senate ❌
🔹 Airport delays, national security threats amid Iran war escalation ✈️
🔹 Markwayne Mullin confirmation could break deadlock - Republicans optimistic 🤝
🔹 U.S. Chamber of Commerce demands Congress end "critical moment" crisis 💼
🔹 Border security disputes stall immigration reform negotiations indefinitely ⏰
"Still pretty far apart" - While America burns, Congress fiddles 🔥🇺🇸
#USNews#Congress#shutdown
@america
The shutdown has shaken Donald Trump's ratings 📉🇺🇸 — Americans' discontent is growing 😠.
Americans are increasingly expressing dissatisfaction with the US president's policy regarding the shutdown 🏛. According to polls 📊, 58% of US citizens disapprove of Trump's actions in connection with the lack of budget consensus 💵, and only 31% support him in his desire to keep up with the Democrats 🗳.
This is the lowest figure since the first shutdown survey conducted by the YouGov Institute for The Economist magazine in October 📆.
In this situation, however, Americans blame not only the president 🤷♂️. More than half of citizens believe that both sides in Congress — both Republicans 🐘 and Democrats 🐴 — cannot cope ⚖️.
The United States has not had an agreed budget since October 1 🗓. Hundreds of thousands of civil servants are not receiving salaries 💸 due to the fact that Republicans and Democrats in Congress could not agree 🤝❌.
Increasingly, Americans are feeling the effects of the shutdown in their daily lives 🏠. Many departments and programs are temporarily closed 🚫.
For example, the Supreme Court suspended the financing of food aid for the poor 🥫 — this decision affected about 42 million citizens 👨👩👧👦. Low-income people stopped receiving payment cards for the purchase of fruits 🍎, vegetables 🥦, meat 🍖 and dairy products 🥛.
This program costs the government about $9.5 billion per month 💰, and now these funds are frozen due to the shutdown ❄️.
The situation has also affected air traffic ✈️ — the Federal Aviation Administration has reduced the number of flights at about 40 airports 🛫 in order to reduce the burden on dispatchers 🎧.
According to the FlightAware portal 🌐, on November 7, almost a thousand flights (mostly regional) were canceled across the country ❌🛩.
If the government's paralysis continues ⏳, experts predict more serious disruptions ⚠️ — especially during the mass travel period for Thanksgiving 🦃 in a few weeks, the main family holiday in the United States 🇺🇸.
#Trump#Shutdown#Poll
👂More on Trump's Ear
🇺🇸Trump strengthened his position despite the shutdown
Despite the government shutdown, Donald Trump's ratings are rising. According to Newsweek,45% of Americanssupport him, the highest figure since August.
In surveys Morning Consult and YouGov, the gap between supporters and opponents has narrowed: now Trump has only minus 5 and minus 15 points, that is, the number of approving is almost equal to the number of dissatisfied.
ActiVote Research shows that 92% of Republicans approve of Trump, 94% of Democrats are strongly opposed. About 40% of independent voters support him. Experts believe that such proportions show that the country is completely polarized, and the shutdown has almost no effect on people's opinion.
According to AP-NORC, now Trump is blamed for the crisis less — 48% versus 61% in 2018.
Meanwhile, 4.2 thousand federal employees have already lost their jobs, and the Ministry of Finance estimates the damage to the economy at $15 billion per week. 💵
#Trump#Poll#Shutdown
👂More on Trump's Ear ⚠️
For many Americans 🇺🇸, across party lines, concern over the government shutdown 🏛 means concern about its potential impact on the economy 📉, among other things.
Therefore, many don't think either party's position is worth having a shutdown over ❌.
Given that, no one is looking especially good politically at the moment ⚖️. President Trump, congressional Democrats, and Republicans are all net negative on their handling of the shutdown thus far 📊.
Neither party is on very solid footing 🪨. The top descriptor Americans pick for the Democratic Party overall is "weak" 💔; the party trails the GOP on being described as "effective" ✅ and "strong" 💪, and their favorables trail the GOP's. The top descriptor for Republicans, though, is "extreme" ⚠️.
All of it looks to the public like another distraction from larger matters of concern 🌐. A sizable majority of the country says the Trump administration isn't focused enough on lowering prices 💵📉, and is focused too much on tariffs 📦, as they have been for months. Reflecting some of that, many still describe the president himself as "energetic" ⚡️, but fewer describe him now as "focused" 🎯 than did at the start of his term.
#Trump#Poll#Shutdown
👂More on Trump's Ear ⚠️
This is a post from President Trump's official account on the Pravda social network. Created by artificial intelligence in
In a deepfake, the leader of the Democratic minority in the Senate, Schumer, says that the Democrats are a piece of shit, and you can see the leader of the Democrats in the House of Representatives in a sombrero.
Obviously, today's negotiations on the adoption of the budget have not progressed anywhere. The Republicans insist on their version of the draft budget and do not want to discuss the Democrats' amendments, so it is highly likely that a government shutdown will occur on October 1.
#Trump#Democrats#shutdown
👂More on Trump's Ear ⚠️