Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on Alternative Architectures
  • Search

Gentoo tmpfs on GPU Ram disk?

Post here for other supported architectures, or if you are interested in porting Gentoo to a currently unsupported architecture.
Post Reply
Advanced search
14 posts • Page 1 of 1
Author
Message
nathanlkoch
Apprentice
Apprentice
User avatar
Posts: 163
Joined: Sun Jan 31, 2021 6:45 am
Location: Earth / Sol
Contact:
Contact nathanlkoch
Website

Gentoo tmpfs on GPU Ram disk?

  • Quote

Post by nathanlkoch » Tue Feb 02, 2021 5:12 am

Could one setup distc with portage's directory on a gpu ramdisk for extremely fast builds? Has anyone done it before?
SETI - Earth/Sol
Affiliated with Spahc Ehwriens
Gentoo:Wikiuser
Top
DawgG
l33t
l33t
User avatar
Posts: 880
Joined: Wed Sep 17, 2003 12:31 pm

  • Quote

Post by DawgG » Tue Feb 02, 2021 10:01 am

it can certainly be done: mount the tmpfs and set portage_tmpdir (look up the exact variable name in make.conf) to that.
i wouldn't expect
extremely fast builds
though because on systems accessible to us mere mortals usually disk-io or, in this case, ram-speed isn't the limiting factor when compiling but cpu power. i ususally keep portage_tmpdir in ram and i cannot say there is a noticeable speed increase when building. just give it a try!
GOOD LUCK!
DUMM KLICKT GUT.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56071
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Tue Feb 02, 2021 12:07 pm

DawgG,

There isn't a speed improvement for the portage build space in RAM.
When you have the RAM for it. the kernel virtual memory system keeps the build products in the disk cache. They are never flushed as there is no demand on RAM.
You just get a lot of writes to disk that are never read. Putting the portage build space in RAM saves these writes. That's a good thing on SSD.
It saves bus bandwidth but thats not a speed improvement that you would notice.

As to using the RAM on a GPU, it will be slower than main memory because the interface is not designed to access filesystems.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
DawgG
l33t
l33t
User avatar
Posts: 880
Joined: Wed Sep 17, 2003 12:31 pm

  • Quote

Post by DawgG » Tue Feb 02, 2021 1:16 pm

NeddySeagoon,
you are right - THX for the info.
one other main reason for doing this is that it "cleans" the build-dir on every remount/reboot.
DUMM KLICKT GUT.
Top
Ant P.
Watchman
Watchman
Posts: 6920
Joined: Sat Apr 18, 2009 7:18 pm
Contact:
Contact Ant P.
Website

  • Quote

Post by Ant P. » Tue Feb 02, 2021 3:40 pm

A PCIe 4.0 x16 card will give you a maximum of 31GB/s bandwidth. Dual-channel DDR4 at its slowest rated speed is faster than that. Same goes for PCIe/DDR 3 and most of DDR 2 as well.

You won't get extremely fast builds, you'll get extremely hot builds.
Top
nathanlkoch
Apprentice
Apprentice
User avatar
Posts: 163
Joined: Sun Jan 31, 2021 6:45 am
Location: Earth / Sol
Contact:
Contact nathanlkoch
Website

  • Quote

Post by nathanlkoch » Tue Feb 02, 2021 7:11 pm

Now I know.
SETI - Earth/Sol
Affiliated with Spahc Ehwriens
Gentoo:Wikiuser
Top
Zucca
Moderator
Moderator
User avatar
Posts: 4677
Joined: Thu Jun 14, 2007 10:31 pm
Location: Rasi, Finland
Contact:
Contact Zucca
Website

  • Quote

Post by Zucca » Tue Feb 02, 2021 7:37 pm

Fun fact: there was a driver that made possible to use GPU ram as swap. It could be useful on some laptops with dedicated gpu.
..: Zucca :..

Code: Select all

init=/sbin/openrc-init
-systemd -logind -elogind seatd
I am NaN! I am a man!
Top
nathanlkoch
Apprentice
Apprentice
User avatar
Posts: 163
Joined: Sun Jan 31, 2021 6:45 am
Location: Earth / Sol
Contact:
Contact nathanlkoch
Website

  • Quote

Post by nathanlkoch » Tue Feb 02, 2021 9:05 pm

Zucca wrote:Fun fact: there was a driver that made possible to use GPU ram as swap. It could be useful on some laptops with dedicated gpu.
Neat-o. 8)
SETI - Earth/Sol
Affiliated with Spahc Ehwriens
Gentoo:Wikiuser
Top
pjp
Administrator
Administrator
User avatar
Posts: 20668
Joined: Tue Apr 16, 2002 10:35 pm

  • Quote

Post by pjp » Tue Feb 02, 2021 9:12 pm

Zucca wrote:Fun fact: there was a driver that made possible to use GPU ram as swap. It could be useful on some laptops with dedicated gpu.
Also to not use system RAM and still preserve solid-state devices.
Quis separabit? Quo animo?
Top
nick_gentoo
Tux's lil' helper
Tux's lil' helper
Posts: 140
Joined: Mon Jan 07, 2019 7:42 pm

  • Quote

Post by nick_gentoo » Wed Feb 03, 2021 12:20 pm

Hi, I understand why the GPU ramdisk is not such a good idea, but the geek in me is asking: HOW exactly is that done?
Top
nathanlkoch
Apprentice
Apprentice
User avatar
Posts: 163
Joined: Sun Jan 31, 2021 6:45 am
Location: Earth / Sol
Contact:
Contact nathanlkoch
Website

  • Quote

Post by nathanlkoch » Wed Feb 03, 2021 7:43 pm

nick_gentoo wrote:Hi, I understand why the GPU ramdisk is not such a good idea, but the geek in me is asking: HOW exactly is that done?
https://www.youtube.com/watch?v=sdlerQmeZds
https://www.reddit.com/r/pcmasterrace/c ... _gpu_vram/
SETI - Earth/Sol
Affiliated with Spahc Ehwriens
Gentoo:Wikiuser
Top
Zucca
Moderator
Moderator
User avatar
Posts: 4677
Joined: Thu Jun 14, 2007 10:31 pm
Location: Rasi, Finland
Contact:
Contact Zucca
Website

  • Quote

Post by Zucca » Wed Feb 03, 2021 8:02 pm

https://github.com/Overv/vramfs
Oh this is fun. :P
..: Zucca :..

Code: Select all

init=/sbin/openrc-init
-systemd -logind -elogind seatd
I am NaN! I am a man!
Top
nick_gentoo
Tux's lil' helper
Tux's lil' helper
Posts: 140
Joined: Mon Jan 07, 2019 7:42 pm

  • Quote

Post by nick_gentoo » Thu Feb 04, 2021 9:49 am

Thank you for the pointers!
Zucca wrote:Oh this is fun. :P
Yes, indeed
Top
Zucca
Moderator
Moderator
User avatar
Posts: 4677
Joined: Thu Jun 14, 2007 10:31 pm
Location: Rasi, Finland
Contact:
Contact Zucca
Website

  • Quote

Post by Zucca » Thu Feb 04, 2021 10:29 am

Now... Do I spare on RAM next time and invest in a pro GPU that has lots of vRAM? 8)

Joking.

A little off-topic, but I have been looking at those WAM (Write acceleration module) cards as a faster swap device. Still buying more RAM makes more sense, obviously. But a PCIe card filled with cheap DDR3 memory is an interesting concept.
..: Zucca :..

Code: Select all

init=/sbin/openrc-init
-systemd -logind -elogind seatd
I am NaN! I am a man!
Top
Post Reply

14 posts • Page 1 of 1

Return to “Gentoo on Alternative Architectures”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy