View previous topic :: View next topic |
Author |
Message |
while true Guru
Joined: 07 Apr 2010 Posts: 532 Location: Ljubljana, Slovenia
|
Posted: Sun Nov 24, 2019 1:37 pm Post subject: Improve swap performance |
|
|
Hello Gentoo people,
I am to embark on next step of gentoo rpi experiance,
so this link draw my eye: https://github.com/sakaki-/gentoo-on-rpi-64bit/wiki/Improve-Swap-Perfomance-on-your-RPi
but I am confuse by this:
Code: | demouser@pi64 ~ $ sed 's:\s*#.*$::g' <<EOF | sudo fdisk /dev/sdX
o # create a new DOS partition table
n # then create a new partition
p # which is primary
1 # and is partition 1
# use the default start sector
# and default end sector, to fill the drive
t # change the partition type
82 # to 'Linux swap'
w # then commit changes and exit
EOF |
How is this executed?
I mean is this 11 commands in terminal? eof is end of file, do I have to write those down in some file?
and is it wrong if i just go sudo fdisk /dev/sdX, and when fdisk opens, i issue the o's and n's and p's in that written order?
Thank you _________________ Kind regards, Goran Mitic
alive
while true
kick ass |
|
Back to top |
|
|
fturco Veteran
Joined: 08 Dec 2010 Posts: 1181
|
Posted: Sun Nov 24, 2019 4:26 pm Post subject: |
|
|
According to that GitHub wiki article:
Quote: | In the above, sed is used simply to strip out all comments on each line, before passing to fdisk. |
So you may also choose to manually type those commands in fdisk instead of running them automatically. At least that's what I would choose to do myself.
I also think you can use parted instead of fdisk if you are more familiar to the former. |
|
Back to top |
|
|
while true Guru
Joined: 07 Apr 2010 Posts: 532 Location: Ljubljana, Slovenia
|
Posted: Sun Nov 24, 2019 7:49 pm Post subject: |
|
|
hello fturco,
thank you, that was not clear to me, I did it as you suggested, it is just strange to see instructions in that way.
ok, i have 4g swap on usb, thanks
Now I hit another issue, I use dwm, with .xinit, but instead of a usual blink of an eye from startx to wm, it takes over 20 seconds?
Thank you _________________ Kind regards, Goran Mitic
alive
while true
kick ass |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54592 Location: 56N 3W
|
Posted: Sun Nov 24, 2019 7:57 pm Post subject: |
|
|
while true,
Pastebin /var/log/Xorg.0.log please so we can see what Xorg is doing as it starts.
dmesg may be useful too. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
while true Guru
Joined: 07 Apr 2010 Posts: 532 Location: Ljubljana, Slovenia
|
Posted: Sun Nov 24, 2019 8:22 pm Post subject: |
|
|
Hello NeddySeagoon,
I am still havinf wifi prolems also,
i'll use usb-wifi dongle to get on network, emerge wgetpaste and i'll get right back
thank you
EDIT:
Well it seem that was couple off, maybe that usb-swap thing needed setteling.
I just rebooted 3 times, and each time I startx-ed 2-3 times, and all is done in a blink of an eye, so I am sorry for screaming...
Code: | |--------------->
~/# wgetpaste /var/log/Xorg.0.log
Your paste can be seen here: http://dpaste.com/2R1KM9K
|--------------->
~/# dmesg | wgetpaste
Pasting > 25 kB often tend to fail with dpaste. Use --verbose or --debug to see the
error output from wget if it fails. Alternatively use another pastebin service.
Your paste can be seen here: http://dpaste.com/381BC3C
|--------------->
~/# |
thank you _________________ Kind regards, Goran Mitic
alive
while true
kick ass |
|
Back to top |
|
|
fturco Veteran
Joined: 08 Dec 2010 Posts: 1181
|
Posted: Mon Nov 25, 2019 1:26 pm Post subject: |
|
|
X fails due to the following error:
Code: | [ 42.910] (II) modeset(0): Refusing to try glamor on llvmpipe
[ 42.913] (EE) modeset(0): glamor initialization failed |
It seems this behavior has been introduced with this git commit.
Did you configure Xorg manually perhaps? If so, please show us the contents of /etc/X11/xorg.conf and/or the contents of the files in /etc/X11/xorg.conf.d.
Output from the following commands would be nice, too:
Code: | emerge --info
emerge -pv xorg-server |
|
|
Back to top |
|
|
while true Guru
Joined: 07 Apr 2010 Posts: 532 Location: Ljubljana, Slovenia
|
Posted: Mon Nov 25, 2019 1:36 pm Post subject: |
|
|
Hello fturco,
I was thinking about opening a new thread for this problem, since it repeted itself today, but than, again, disappeared, I tell you, it is a roller-coaster here, I can not seem to get any consistent output...
So yes, please, I'll start new thread with output you requested,
(link: https://forums.gentoo.org/viewtopic-t-1104578.html)
and this thread will need updating soon, i feell... _________________ Kind regards, Goran Mitic
alive
while true
kick ass |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|