В 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
Defined by their unique streetscapes and heritage, check out these five Identity Corridors that we have identified in the Long-Term Plan Review!
We plan to preserve their character as well as strengthen the walking and cycling infrastructure along these distinctive corridors stretching across our island, so that they will continue to be well used and loved by future generations. 🚶♀️🚴
This is one of our long-term planning strategies to shape Singapore as a loveable city for all. More at: go.gov.sg/ltprcherish
#LTPR2021
In the long-term, how can we strengthen our mobility networks and shift towards more sustainable and efficient modes of travel within our city? 🚈🚴♀️
We have developed strategies to meet these needs, based on future trends and challenges, as well as your feedback. Check it out above, and visit go.gov.sg/ltprmove for more! You can also explore all the strategies at our #LTPR2021 exhibition at The URA Centre.
Look forward to new attractions coming your way in our city, such as the Bay East Garden, a Jurong Lake District tourism development and the rejuvenated Mandai Wildlife Reserve!
💡Expanding Singapore's leisure offerings is one of the long-term planning strategies that we have developed for Play, one of seven pillars representing elements of Singapore’s future urban environment in our Long-Term Plan Exhibition.
Find out more about how we plan to diversify our leisure offerings and make them more accessible at: go.gov.sg/ltprplay#LTPR2021
How will workspaces continue to evolve in the future? 💡
As part of the Long-Term Plan Review, we have developed planning strategies that will enable Singapore to adapt to shifts in the global economy, offer attractive spaces for businesses, and ensure quality jobs for Singaporeans.
Find out more at: go.gov.sg/ltprexhibit#LTPR2021
🏠 Housing is at the heart of Singapore's high-quality living environment.
As part of the Long-Term Plan Review, we have developed the above strategies to chart the future of our living environment.
These strategies will not only meet the basic need for shelter for generations to come, but also contribute to a strong sense of belonging among Singaporeans, and accommodate future shifts such as an ageing population and increasingly diverse households.
👉 Read about them in more detail at: go.gov.sg/ltprlive. #LTPR2021
🏠 Explore how far-sighted long-term plans have shaped Singapore's housing landscape from independence to the present day!
As aspirations and needs evolve over time, we regularly review long-term planning strategies for housing as well as our city's many competing land use needs. In our on-going Long-Term Plan Review, many of you have also shared ideas in engagement sessions for how future homes can look like.
We’ve developed possible planning strategies based on your feedback - hear more about them in our #LTPR2021 Round-Up Dialogues on 9 and 16 April! Register from now till 8 April at: https://go.gov.sg/tg-rud3
How have past Concept Plans shaped Singapore? In the first post of this #LTPR2021 series, we look at how long-term plans have supported Singapore's economic growth through the decades!
Join us in shaping our city's Future of Work in the next phase of the Long-Term Plan Review at our 9 & 16 Apr Round-Up Dialogues. Sign up now at: https://go.gov.sg/tg-rud1
Shape Singapore’s future with us! URA has launched a year-long public engagement exercise for the Long-Term Plan Review to hear your aspirations and needs for our future city, to develop resilient, flexible, and inclusive long-term plans based on your feedback.
URA's long-term plans will guide the development of Singapore over the next 50 years. These plans are reviewed every 10 years to ensure that various land use needs are catered for. This includes ensuring that there is sufficient land to sustain Singapore’s economy, adapt to the impacts of climate change, secure the supply of water and other resources, as well as for homes, green spaces, transport infrastructure and more.
Share your views with us on shaping our future city in the online poll at: go.gov.sg/ltpr
#LTPR2021
💡What will Singapore be like in 50 years?
Looking 50 years and more into the future opens up many possibilities that we can explore, as we map out long-term land uses for Singapore in the Long-Term Plan Review. Get inspired by some of the creative ideas that our younger citizens dreamed up!
Think big with us and share your bold ideas for our future city at our Phase 2 discussions for the #LTPR2021. Sign up now at: go.gov.sg/ltprp2
In our compact city, planning for the many different land use needs is often like a balancing act. By working together, we can make future Singapore a space for our hopes and dreams.
We've just launched Phase 2 of the Long-Term Plan Review public engagement exercise - come share your ideas at: go.gov.sg/ltpr
#LTPR2021#SGTogether
💡What do you value more in shaping a liveable Singapore: a good transportation network, convenient access to amenities, greenery in the city or the other factors above?
We're calling for your views and ideas in our online poll for the Long-Term Plan Review. With your participation, we can develop long-term land use plans that will better meet your needs and aspirations as well as those of future generations!
Tell us more at: go.gov.sg/ltpr
#LTPR2021#SGTogether
📣 We just launched our public engagement for the Long-Term Plan Review (LTPR) today and are excited to develop plans for Singapore's next chapter with you over the next year!
The #LTPR2021 is the latest review of plans that will steward land resources not just for today's use but also for future generations over the next 50 years and beyond.
We'd love to hear your hopes and aspirations for the future to develop these long-term plans! Watch how long-term planning has shaped the everyday lives of fellow citizens as well as what they dream for our future city - and share your dreams with us in our online poll at go.gov.sg/ltpr
#SGTogether