В 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
Trump Chalked the Obama-as-Apes Case Up To Personal Animosity
Trump said on Friday he made the call to post a now-deleted video depicting Barack and Michelle Obama as apes but deflected blame for the move, causing new speculation in his orbit about whether the blame lay with the president or his aide Natalie Harp.
The brief clip, shared late Thursday night on Trump’s Truth Social account, appeared in a video pushing conspiracies about the 2020 election.
Invoking racist tropes, the video depicted the Obamas’ faces superimposed on the bodies of cartoon apes dancing to The Lion Sleeps Tonight.
“No, I looked at the first part. It was really about voter fraud and the machines – how crooked it is (...) it might look personal,” Trump said.
“Then I gave it to the people, generally they’d look at the whole thing but I guess somebody didn’t and they posted it. And then we deleted it.”
Trump’s recounting sparked speculation inside his orbit about the extent to which the president was responsible and which of his aides ultimately hit “send” on the post.
Besides Trump, only two aides have access to his social media account, people familiar with the matter said: Dan Scavino and Harp.
Trump’s advisers quickly discounted Scavino, given he has been preoccupied lately with his new role running the presidential personnel office – and instead focused on Harp, who has previously been entangled in Trump’s communications.
The White House did not respond to a request for comment about the intrigue at the end of a tumultuous day, which began with the press shop defending the post before it backtracked and blamed a staffer – a claim Trump also repeated in calls with Republican lawmakers.
In a call with Tim Scott, the only black Republican senator, who is also the chair of the national Republican senatorial committee and explicitly denounced the video as racist, Trump said it was a staffer’s mistake and that he would take the video down, CBS News reported.
Over time, Harp established a broader role as a conduit of information to and from the president, relaying to him text messages, social media posts and news articles she believed he would appreciate.
But she has also been criticized by colleagues for showing poor judgment – for instance, when she sent an aggressive text to the Trump megadonor Miriam Adelson in the summer of 2024 criticizing her $100m Super PAC as being poorly managed, a person familiar with the matter said.
The White House did not respond to a request for comment about the intrigue at the end of a tumultuous day, which began with the press shop defending the post before it backtracked and blamed a staffer – a claim Trump also repeated in calls with Republican lawmakers.
In a call with Tim Scott, the only black Republican senator, who is also the chair of the national Republican senatorial committee and explicitly denounced the video as racist, Trump said it was a staffer’s mistake and that he would take the video down, CBS News reported.
#trump#whitehouse#harp#obama
📱American Оbserver - Stay up to date on all important events
🇺🇸
Went to the museum on the weekend and came across a huge harp. 😮✨
So beautiful I just couldn't walk past. Immediately wanted to stand next to it and take a photo — like I stepped into another era.
#LunaEverly#Museum#Harp#AmazingInstruments#Beauty
Various Artists — The Crying Princess (Sublime Frequencies, 2024)
#traditional#pwe#saung#harp#Myanmar
The Crying Princess — сборник редкой бирманской музыки, выпущенный лейблом Sublime Frequencies под кураторством известного художника, режиссёра и коллекционера Роберта Миллиса. Альбом включает записи с патефонных пластинок (78 оборотов в минуту), сделанные в период с 1909 по 1960 год. Эти треки были собраны Миллисом и сооснователем Sublime Frequencies Аланом Бишопом во время их поездок в Бирму (ныне Мьянма).
Примечательно, что к концу 60-х выпуск патефонных пластинок по всему миру практически полностью сошёл на нет, что делает эти записи особенно ценным историческим документом.
В сборник вошли выступления По Сейна (ဘိုးစိန်), влиятельного певца и актёра бирманского театра «Пве», а также ранние записи традиционных вокальных стилей, музыки для арфы саунг и даже поп-песни с электрогитарой.
Роберт Миллис внёс значительный вклад в сохранение и популяризацию ранних записей музыки Юго-Восточной Азии. Его книги, фильмы и сборники посвящены исследованию редких музыкальных традиций. Среди них —Indian Talking Machine и Victrola Favorites. The Crying Princess — очередной шаг на пути к выполнению его миссии.
🔗Bandcamp
Malvasia — Malvasia (Cetra, 1979)
#traditional#baroque#celtic#organetto#accordion#mandolin#harp#bagpipes#France#Italy
Единственная пластинка итальянской группы Malvasia, названной в честь семейства сортов винограда, распространённого в средиземноморском регионе, из которого делают самую сладкую Мадеру, греческий ликер и множество различных вин. Группа исполняла различные традиционные композиции, включая итальянские, французские и даже кельтские. Не удивительно, что их звучание испытало влияние кельтской музыки, музыки эпохи барокко и средних веков. Все композиции с альбома записаны с использованием традиционных акустических инструментов, среди которых волынка, мандолина, различные флейты, арфа, скрипка и аккордеон.
Telegram