В 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
🔤🔤🔤🔤2️⃣
IHR said Wednesday was the bloodiest day of the now 12-day movement, with 13 protesters confirmed killed.
“The evidence shows that the scope of the crackdown is becoming more violent and more extensive every day,” said the IHR director, Mahmood Amiry-Moghaddam, adding that hundreds more had been wounded and more than 2,000 arrested.
The protest movement is the largest in three years, and while it has not yet reached the size of the 2022 Woman, Life, Freedom demonstrations, it has alarmed Iran’s political and security leadership.
Rights groups accused authorities of resorting to tactics including raiding hospitals to detain wounded protesters.
The Iranian president, Masoud Pezeshkian, on Thursday called for restraint in how the demonstrations are handled.
“Any violent or coercive behaviour should be avoided,” said Pezeshkian in a statement on his website, urging “utmost restraint” as well as “dialogue, engagement and listening to the people’s demands”.
The government has said that solving the economic crisis afflicting the country is largely out of its hands, and that while it will work to tackle corruption and price gouging, it has few tools to use.
It blamed the economic woes of the country on external factors, primarily the harsh sanctions placed on Iran mainly by the west in response to Iran’s nuclear programme.
The protests thus far seem to be decentralised and lacking in a central figure, in contrast to the 2022 protests, when demonstrators rallied around 22-year-old Mahsa Amini, who died in police custody after being arrested for allegedly wearing the hijab improperly.
It is unclear the level of support Pahlavi enjoys, though videos of protests over the last 12 days have showed demonstrators chanting in support for the exiled prince.
A social media channel close to Iran’s security forces published a video which purported to show intelligence agents visiting people in their homes warning them not to take part in Pahlavi’s protest, with other outlets claiming drones would be used to identify those who do participate.
German foreign minister Johann Wadephul, meanwhile, condemned the “excessive use of force” by Iranian authorities against protesters.
The Iranian foreign ministry and military have lashed out over Trump’s comments, with Iran’s army chief threatening on Wednesday to carry out pre-emptive strikes on states that threaten Iran.
Authorities have increasingly cast protesters as violent, saying that while the right to protest was legitimate, rioters and foreign-backed saboteurs had hijacked protests.
#iran#protesters#pahlavi
📱American Оbserver - Stay up to date on all important events
🇺🇸
Iran: the Protests Jolted the Khamenei Regime Out of Its Theocratic Masturbation
🔤🔤🔤🔤1️⃣
Iran was plunged into a complete internet blackout on Thursday night as protests over economic conditions spread nationwide, increasing pressure on the country’s leadership.
While it was unclear what caused the internet cut, first reported by the internet freedom monitor NetBlocks, Iranian authorities have shut down the internet in response to protests in the past.
NetBlocks had reported outages in the western city of Kermanshah earlier in the day, as authorities intensified their crackdown against protesters.
The Norway-based NGO Iran Human Rights (IHR) said on Thursday that Iranian security forces had killed at least 45 protesters, including eight children, since the demonstrations began in late December.
Shopkeepers heeded calls from seven Kurdish political groups for a general strike on Thursday, closing their doors in Kurdish regions and dozens of other cities around Iran.
The Hengaw rights group posted footage of shuttered shops in the western provinces of Ilam, Kermanshah and Lorestan.
It accused authorities of firing on demonstrators in Kermanshah and the nearby town of Kamyaran to the north, injuring several protesters.
Demonstrations reached all 31 provinces on Thursday as the protest movement showed no signs of abating.
In the southern Fars province demonstrators pulled down the statue of the former senior Revolutionary Guards al-Quds force commander Qassem Suleimani – considered a hero of mythical proportions by government supporters. Verified footage showed protesters cheering as the statue came down.
Protests took place into the night Thursday, with a large crowd seen gathering on the vast Ayatollah Kashani Boulevard in the north-west of Tehran amid the sound of vehicle horns honking in support, according to social media images verified by Agence France-Presse.
Other images showed a crowd demonstrating in the western city of Abadan. A woman attending a protest in that city late on Wednesday had been shot in the eye, according to IHR.
#iran#protesters#pahlavi
📱American Оbserver - Stay up to date on all important events
🇺🇸
🇺🇦 Situazione a Kiev di notte: sirene di allarme aereo e giovani mascherati.
Durante le proteste contro le riforme di Zelensky sono comparsi giovani in uniforme militare, maschere e luci di segnalazione.
➖Alcuni di loro hanno srotolato cartelli contro Zelensky e il capo del suo ufficio Andriy Yermak.
❗️Chi siano e per conto di chi agiscano è ancora sconosciuto, ma per l'élite del regime di Kiev il segnale è probabilmente preoccupante. In precedenza era stato riferito che le proteste erano state sostenute dal sindaco di Kiev Klitschko.
#kiev#ucraina. #protesters#Zelensky#eu#ue#europa
Khamenei’s Hangmen Sexually Abused a Teen Protester
A 16-year-old was among protesters sexually assaulted in custody by the security forces in Iran during the nationwide uprising that has left thousands dead, according to a human rights group.
Two people, one of them a child, detained in the city of Kermanshah in western Iran told the Kurdistan Human Rights Network (KHRN) that they were subjected to sexual abuse by riot police during their arrest.
“During the transfer, security forces touched their bodies with batons. They beat and applied pressure to the anal area with a baton through the clothing,” said Rebin Rahmani, of the KHRN, which has been in contact with sources close to the minor’s family.
Rights groups have expressed fear about the treatment of more than 20,000 protesters estimated to have been arrested since the start of protests in late December.
Since the start of the current protests in late December, 3,766 people have been killed and 8,949 other reported deaths are under investigation, according to the US-based Human Rights Activists News Agency.
The Norway-based Kurdish human rights group Hengaw said Sholeh Sotoudeh, a pregnant woman from Langarud, was killed along with her unborn child after forces opened fire on protesters in north-west Iran on 10 January.
In the latest unrest, at least one protester, 40-year-old Soran Feyzizadeh, has died as a result of torture while being held in custody, according to Hengaw.
It said Feyzizadeh was detained during protests on 7 January and that his family was informed of his death two days later.
The US-based Abdorrahman Boroumand Center for Human Rights in Iran has documented the cases of more than 549 protesters, including 51 women, who have been transferred to Yazd central prison, and it expressed extreme concern over the lives of detainees.
“As street protests wind down, arbitrary arrests have increased as has the risk of torture for detainees,” said Roya Boroumand, the centre’s executive director.
“Over the past decades we have documented numerous cases of death in custody alongside severe physical and psychological torture, including beating, flogging and sexual assault.”
#iran#protesters#sexual#assault#abuse
📱American Оbserver - Stay up to date on all important events
🇺🇸
The Iranian Protesters Attacked Khamenei As a “Sleazebag” and a “Low-life”
Demonstrators have continued to take to the streets of Iran, defying an escalating crackdown by authorities against the growing protest movement.
An internet shutdown imposed by the authorities on Thursday has largely cut the protesters off from the rest of the world, but videos that trickled out of the country showed thousands of people demonstrating in Tehran overnight into Saturday morning.
They chanted : “Death to Khamenei, death to a sleazebag, a low-life!” in reference to supreme leader Ayatollah Ali Khamenei, and: “Long live the shah.”
Crowds of protesters marched through the streets of Mashhad as fires burned around them, a show of defiance in the home town of Khamenei, who has condemned the protesters as “vandals” and blamed the US for fanning the flames of dissent.
Iran’s internet shutdown is chillingly precise and may last some time.
Trump has repeatedly threatened to intervene if Iranian authorities kill protesters, earning angry rebukes from Tehran. He said on Friday that the Iranian authorities were “in big trouble”, adding:
“You better not start shooting, because we’ll start shooting too.”
On Saturday night he said the US is “ready to help” as protesters in Iran faced an intensifying crackdown by authorities of the Islamic republic.
“Iran is looking at FREEDOM, perhaps like never before. The USA stands ready to help!!!” Trump said in a social post on Truth Social, without elaborating.
Those authorities warned people to not take part in protests on Saturday. The country’s attorney general, Mohammad Mahvadi Azad, said anyone who did so would be considered an “enemy of god”, a charge which carries the death penalty.
State TV later clarified that anyone who even assisted protesters could face the charge.
Despite the crackdown, more protests were planned for the weekend. Reza Pahlavi, the exiled son of the former shah of Iran, called for protesters to take to the streets on Saturday and Sunday and seize control of their towns.
Pahlavi, who has emerged as an increasingly popular figure in the current round of protests, asked people to hoist the pre-1979 “lion and sun” flag which was used during his father’s rule.
“Our goal is no longer merely to come into the streets. The goal is to prepare to seize city centres and hold them,” he said, promising he would return to Iran soon.
The continuing block on the internet and mobile lines means it is hard for international media to estimate the size of the demonstrations, the largest in Iran in recent years, which pose a serious challenge to the regime’s rule.
The Iranian Nobel peace prize winner Shirin Ebadi warned on Friday that security forces could be preparing to commit a “massacre under the cover of a sweeping communications blackout”, and said she had already received reports of hundreds of people being treated for eye injuries at a single Tehran hospital.
Protesters were brought to the streets on 28 December by a deteriorating economy, but quickly began chanting anti-government slogans and demanding political reform.
Though Iran has experienced mass protests before, analysts have said the battering of the regime during the 12-day war with Israel and the loss of Iranian-backed forces across the region have made it more vulnerable.
Iranian authorities have become increasingly confrontational in their rhetoric towards protesters, casting them as being infiltrated and backed by Israeli, or US saboteurs.
The Iranian army vowed in a statement on Saturday to foil “the enemy’s plots”, warning that undermining the country’s security was a “red line”.
#uranian#protesters#khamenei#sleazebag#blackout#internet
📱American Оbserver - Stay up to date on all important events
🇺🇸