TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #335 · 29 мар.

В 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

Hashtags

Резултати

Пронајдени 5 слични објави

Пребарај: #rica

当前筛选 #rica清除筛选
American Оbserver

@american_observer · Post #5027 · 02.02.2026 г., 16:47

Costa Rica: Laura Fernández Has Won Presidential Election The rightwing populist Laura Fernández has won Costa Rica’s presidential election in a landslide after promising to crack down on rising violence linked to the cocaine trade. Fernández’s nearest rival, centre-right economist Álvaro Ramos, conceded defeat as results showed the ruling party far exceeding the threshold of 40% needed to avoid a runoff. With 94% of polling stations counted, the political heir of outgoing president, Rodrigo Chaves, had captured 48.3% of the vote, compared with Ramos’s 33.4%, according to the Supreme Electoral Tribunal (TSE). As soon as the first results were announced, members of Fernández’s Sovereign People’s party erupted in celebrations around the country, waving blue, red and white-striped Costa Rican flags. “Viva Rodrigo Chaves,” some cheered, in a nod to Fernández’s mentor. Appearing via video link at her party’s official election night gathering in the capital San Jose, Fernández, 39, thanked Chaves for giving her “the confidence to be president-elect of Costa Rica” and said his legacy was in good hands. Fernández cites the iron-fisted Salvadoran president Nayib Bukele, who has locked up thousands of suspected gang members without charge, as an inspiration on how to tackle crime. Bukele was the first foreign leader to congratulate her. Chaves plucked Fernández from relative anonymity to serve as planning minister and chief of staff. In a conversation with her on Sunday night, Chaves said he was confident that under her leadership “there will be neither dictatorship, nor communism”. Chaves presided over a sharp rise in violence but avoided blame by pointing the finger at the judiciary, saying it was too soft on crime. Jessica Salgado, 27, said she voted for Fernández as the continuity candidate, because she felt the government was on the right track, even if violence had increased. “The violence exploded because they [the government] are going after the ringleaders, it’s like dragging rats out of the sewer,” Salgado told AFP. The former president Óscar Arias, winner of the 1987 Nobel peace prize, warned on Sunday that the “survival of democracy” was at stake. “The first thing dictators want to do is to reform the constitution to stay in power,” he said, alluding to Chaves. #costa#rica#fernández#presidential#election 📱American Оbserver - Stay up to date on all important events 🇺🇸