Ubuntu 21.04 for ODROID-N2/C4/HC4

Post Reply
User avatar
tobetter
Posts: 8391
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 490 times
Been thanked: 1323 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

mctom wrote:
Tue May 11, 2021 12:09 am
Does the CPU governor play such a huge role on glmark? I wonder why, it's hardly used for this.

From another news, I have similar problems with badly rendered windows, similar to @istanbulls. In my case it affects Firefox mostly, the popup menus.
I read gossips in debian bug tracker that these issues are solved in Sway 1.6. I use Sway 1.5 from ubuntu repo.
The reason why I mention thi is that Sway 1.6 has bumped versions of their dependencies related to wlroots and wayland itself. Apparently this solved some rendering problems. I don't know what are the versions used by Gnome, but surely outdated just like my Sway - the libraries necessary for sway 1.6 are not up to date in ubuntu hirsute repositories.
All I say is that maybe ubuntu impish will come with yet another fixes, outside of the scope of Panfrost itself. ;)
Can you share the photo or screenshot when you meet a rendering issue and how to reach the screen?

User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by mctom »

scrn-2021-05-10-17-41-19.png
scrn-2021-05-10-17-41-19.png (17.82 KiB) Viewed 2755 times
I just clicked the "bookmark" icon in Firefox.
The popup menu flickers (shows and disappears) as you move the cursor over it, something that obviously can't be captured on the screenshot. Moreover cursor paints it in different color. ;)
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
tobetter
Posts: 8391
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 490 times
Been thanked: 1323 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

mctom wrote:
Tue May 11, 2021 12:45 am
scrn-2021-05-10-17-41-19.png

I just clicked the "bookmark" icon in Firefox.
The popup menu flickers (shows and disappears) as you move the cursor over it, something that obviously can't be captured on the screenshot. Moreover cursor paints it in different color. ;)
At least, this does not happen to me with Gnome Desktop. I wish someone else can confirm if happens.

User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by mctom »

tobetter wrote:
Tue May 11, 2021 12:48 am
mctom wrote:
Tue May 11, 2021 12:45 am
scrn-2021-05-10-17-41-19.png

I just clicked the "bookmark" icon in Firefox.
The popup menu flickers (shows and disappears) as you move the cursor over it, something that obviously can't be captured on the screenshot. Moreover cursor paints it in different color. ;)
At least, this does not happen to me with Gnome Desktop. I wish someone else can confirm if happens.
Might as well be a Sway bug. Nothing to worry about. Just dropped this discovery in case it has anything to do with what @istanbulls showed us earlier.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
istanbulls
Posts: 584
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID; N2, C4, XU4, N2+, CH4
Location: Istanbul-Turkey
Has thanked: 359 times
Been thanked: 97 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by istanbulls »

I'm having some screen tears and distorted display issues.

my splash screen is like this:
20210510_200700.jpg
20210510_200700.jpg (624.71 KiB) Viewed 2734 times
GNOME : Wayland
GNOME on Xorg : X11
Ubuntu : Wayland
Ubuntu on Xorg : X11

Ubuntu:
There is a problem with Gparted and Synaptic applications. Other applications will also be a problem, but I think it does not cover too many applications.
There are minor problems with Cromium.
Pictures for Ubuntu:
Screenshot from 2021-05-10 20-12-11.png
Screenshot from 2021-05-10 20-12-11.png (241.09 KiB) Viewed 2734 times
Screenshot from 2021-05-10 20-11-02.png
Screenshot from 2021-05-10 20-11-02.png (197.48 KiB) Viewed 2734 times
Ubuntu on Xorg:
There are too many problems, a lot of apps are unavailable.

GNOME and GNOME on Xorg are ok, all applications are working as they should.

When installing with Netboot Instaler, if you finish the installation with the minimal version and then install the desktop with the sudo apt install ubuntu-desktop command, you will have the opening screen with 4 options in the picture I shared.
While installing with Netboot Instaler, if you complete the setup with Ubuntu-Desktop, you will have a two-option boot screen. Ubuntu on Xorg and Ubuntu, you have the splash screen.

User avatar
istanbulls
Posts: 584
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID; N2, C4, XU4, N2+, CH4
Location: Istanbul-Turkey
Has thanked: 359 times
Been thanked: 97 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by istanbulls »

Another problem, I can't update.

Code: Select all

n2p@odroid:~$ sudo apt update
[sudo] password for n2p: 
Get:1 http://ports.ubuntu.com/ubuntu-ports hirsute-security InRelease [101 kB]
Hit:2 http://tr.ports.ubuntu.com/ubuntu-ports hirsute InRelease                
Get:3 http://tr.ports.ubuntu.com/ubuntu-ports hirsute-updates InRelease [109 kB]
Hit:4 http://tr.ports.ubuntu.com/ubuntu-ports hirsute-backports InRelease
Get:5 http://tr.ports.ubuntu.com/ubuntu-ports hirsute-updates/universe arm64 c-n-f Metadata [2.528 B]
Get:6 http://ppa.linuxfactory.or.kr hirsute InRelease [20,9 kB]                
Fetched 233 kB in 3s (77,8 kB/s)    
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
8 packages can be upgraded. Run 'apt list --upgradable' to see them.
n2p@odroid:~$ sudo apt dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  libegl-mesa0 libgbm1 libgl1-mesa-dri libglapi-mesa libglx-mesa0
  mesa-va-drivers mesa-vdpau-drivers mesa-vulkan-drivers
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
n2p@odroid:~$ 

User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by mctom »

The "greeter" application where you type the password in, and select the desktop environment, is based on X11 as far as I know. It rendered badly on my machine too, but I removed it immediately. I log in through tty1, works just as well without fancy graphics ;)

Both gparted and Synaptic are the applications that need root privileges to run. Coincidence? Don't think so :ugeek:
In Wayland, GUI are generally not allowed to run as root. I can't run any of these programs on Sway, not without using one of a few available tricks. Try some of those available here:
https://github.com/swaywm/sway/issues/4492

For example, I ran gparted using this:

Code: Select all

mctom@Tomusiomat-ARM:~$ xhost si:localuser:root
localuser:root being added to access control list
mctom@Tomusiomat-ARM:~$ sudo gparted
See if gparted renders badly after trying the command above or some of their other tricks.
istanbulls wrote:
Tue May 11, 2021 6:03 am
Another problem, I can't update.
Have you tried

Code: Select all

sudo apt upgrade
?
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by mctom »

Oh, by the way, how can I change boot args? I'd like to remove 'quiet' and 'splash'.

I'm asking because I have already reinstalled my system and decided not to break it again. :D
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
tobetter
Posts: 8391
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 490 times
Been thanked: 1323 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

mctom wrote:
Tue May 11, 2021 6:23 am
Oh, by the way, how can I change boot args? I'd like to remove 'quiet' and 'splash'.

I'm asking because I have already reinstalled my system and decided not to break it again. :D
Remove 'quiet' and 'splash' from /etc/default/flash-kernel and run update-bootscript. Then check /boot/boot.scr if they are removed for sure.

Code: Select all

$ cat /etc/default/flash-kernel 
LINUX_KERNEL_CMDLINE="quiet splash"
LINUX_KERNEL_CMDLINE_DEFAULTS=""
These users thanked the author tobetter for the post:
mctom (Tue May 11, 2021 6:41 am)

User avatar
tobetter
Posts: 8391
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 490 times
Been thanked: 1323 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

istanbulls wrote:
Tue May 11, 2021 6:03 am
Another problem, I can't update.

Code: Select all

n2p@odroid:~$ sudo apt update
[sudo] password for n2p: 
Get:1 http://ports.ubuntu.com/ubuntu-ports hirsute-security InRelease [101 kB]
Hit:2 http://tr.ports.ubuntu.com/ubuntu-ports hirsute InRelease                
Get:3 http://tr.ports.ubuntu.com/ubuntu-ports hirsute-updates InRelease [109 kB]
Hit:4 http://tr.ports.ubuntu.com/ubuntu-ports hirsute-backports InRelease
Get:5 http://tr.ports.ubuntu.com/ubuntu-ports hirsute-updates/universe arm64 c-n-f Metadata [2.528 B]
Get:6 http://ppa.linuxfactory.or.kr hirsute InRelease [20,9 kB]                
Fetched 233 kB in 3s (77,8 kB/s)    
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
8 packages can be upgraded. Run 'apt list --upgradable' to see them.
n2p@odroid:~$ sudo apt dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  libegl-mesa0 libgbm1 libgl1-mesa-dri libglapi-mesa libglx-mesa0
  mesa-va-drivers mesa-vdpau-drivers mesa-vulkan-drivers
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
n2p@odroid:~$ 
I believe you have run sudo apt-mark to prevent updating such packages.
Check the versions installed with dpkg -l | grep mesa and apt-mark showhold.

User avatar
istanbulls
Posts: 584
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID; N2, C4, XU4, N2+, CH4
Location: Istanbul-Turkey
Has thanked: 359 times
Been thanked: 97 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by istanbulls »

mctom wrote:
Tue May 11, 2021 6:22 am
The "greeter" application where you type the password in, and select the desktop environment, is based on X11 as far as I know. It rendered badly on my machine too, but I removed it immediately. I log in through tty1, works just as well without fancy graphics ;)

Both gparted and Synaptic are the applications that need root privileges to run. Coincidence? Don't think so :ugeek:
In Wayland, GUI are generally not allowed to run as root. I can't run any of these programs on Sway, not without using one of a few available tricks. Try some of those available here:
https://github.com/swaywm/sway/issues/4492

For example, I ran gparted using this:

Code: Select all

mctom@Tomusiomat-ARM:~$ xhost si:localuser:root
localuser:root being added to access control list
mctom@Tomusiomat-ARM:~$ sudo gparted
See if gparted renders badly after trying the command above or some of their other tricks.
istanbulls wrote:
Tue May 11, 2021 6:03 am
Another problem, I can't update.
Have you tried

Code: Select all

sudo apt upgrade
?
thanks for your reply.

For the update, upgrade and dist-upgrade have been tried, both of which are negative upgrades.

Gparted and Synaptic are ok for me.
I am logging in with GNOME or GNOME on Xorg and all the applications are running smoothly.
I shared pictures with Ubuntu-Wayland to indicate display problems.
These users thanked the author istanbulls for the post:
tobetter (Tue May 11, 2021 6:44 am)

User avatar
istanbulls
Posts: 584
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID; N2, C4, XU4, N2+, CH4
Location: Istanbul-Turkey
Has thanked: 359 times
Been thanked: 97 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by istanbulls »

sudo apt-mark
Yes I did this involuntarily, how can I get it back. :)

Code: Select all

n2p@odroid:~$ dpkg -l | grep mesa
hi  libegl-mesa0:arm64                            5:21.2.0-devel+202105081032~hirsute                                  arm64        free implementation of the EGL API -- Mesa vendor library
hi  libgl1-mesa-dri:arm64                         5:21.2.0-devel+202105081032~hirsute                                  arm64        free implementation of the OpenGL API -- DRI modules
hi  libglapi-mesa:arm64                           5:21.2.0-devel+202105081032~hirsute                                  arm64        free implementation of the GL API -- shared library
hi  libglu1-mesa:arm64                            9.0.1-1build1                                                        arm64        Mesa OpenGL utility library (GLU)
hi  libglx-mesa0:arm64                            5:21.2.0-devel+202105081032~hirsute                                  arm64        free implementation of the OpenGL API -- GLX vendor library
hi  mesa-va-drivers:arm64                         5:21.2.0-devel+202105081032~hirsute                                  arm64        Mesa VA-API video acceleration drivers
hi  mesa-vdpau-drivers:arm64                      5:21.2.0-devel+202105081032~hirsute                                  arm64        Mesa VDPAU video acceleration drivers
hi  mesa-vulkan-drivers:arm64                     5:21.2.0-devel+202105081032~hirsute                                  arm64        Mesa Vulkan graphics drivers
n2p@odroid:~$ apt-mark showhold
libegl-mesa0
libgbm1
libgl1-mesa-dri
libglapi-mesa
libglu1-mesa
libglx-mesa0
mesa-va-drivers
mesa-vdpau-drivers
mesa-vulkan-drivers
n2p@odroid:~$

User avatar
istanbulls
Posts: 584
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID; N2, C4, XU4, N2+, CH4
Location: Istanbul-Turkey
Has thanked: 359 times
Been thanked: 97 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by istanbulls »

@tobetter, I admire your energy, I guess you never sleep.

User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by mctom »

tobetter wrote:
Tue May 11, 2021 6:26 am
mctom wrote:
Tue May 11, 2021 6:23 am
Oh, by the way, how can I change boot args? I'd like to remove 'quiet' and 'splash'.

I'm asking because I have already reinstalled my system and decided not to break it again. :D
Remove 'quiet' and 'splash' from /etc/default/flash-kernel and run update-bootscript. Then check /boot/boot.scr if they are removed for sure.

Code: Select all

$ cat /etc/default/flash-kernel 
LINUX_KERNEL_CMDLINE="quiet splash"
LINUX_KERNEL_CMDLINE_DEFAULTS=""
Thanks, worked as expected. :)
istanbulls wrote:
Tue May 11, 2021 6:33 am
Gparted and Synaptic are ok for me.
I am logging in with GNOME or GNOME on Xorg and all the applications are running smoothly.
I shared pictures with Ubuntu-Wayland to indicate display problems.
Yes, what I was trying to say is how to get them to work (maybe?) on Wayland. :)
istanbulls wrote:
Tue May 11, 2021 6:40 am
@tobetter, I admire your energy, I guess you never sleep.
It struck me as well. Man, get at least the weekends off! ;)

Seriously, though, I can't thank you enough for all your help. :)
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
tobetter
Posts: 8391
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 490 times
Been thanked: 1323 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

istanbulls wrote:
Tue May 11, 2021 6:37 am
sudo apt-mark
Yes I did this involuntarily, how can I get it back. :)

Code: Select all

n2p@odroid:~$ dpkg -l | grep mesa
hi  libegl-mesa0:arm64                            5:21.2.0-devel+202105081032~hirsute                                  arm64        free implementation of the EGL API -- Mesa vendor library
hi  libgl1-mesa-dri:arm64                         5:21.2.0-devel+202105081032~hirsute                                  arm64        free implementation of the OpenGL API -- DRI modules
hi  libglapi-mesa:arm64                           5:21.2.0-devel+202105081032~hirsute                                  arm64        free implementation of the GL API -- shared library
hi  libglu1-mesa:arm64                            9.0.1-1build1                                                        arm64        Mesa OpenGL utility library (GLU)
hi  libglx-mesa0:arm64                            5:21.2.0-devel+202105081032~hirsute                                  arm64        free implementation of the OpenGL API -- GLX vendor library
hi  mesa-va-drivers:arm64                         5:21.2.0-devel+202105081032~hirsute                                  arm64        Mesa VA-API video acceleration drivers
hi  mesa-vdpau-drivers:arm64                      5:21.2.0-devel+202105081032~hirsute                                  arm64        Mesa VDPAU video acceleration drivers
hi  mesa-vulkan-drivers:arm64                     5:21.2.0-devel+202105081032~hirsute                                  arm64        Mesa Vulkan graphics drivers
n2p@odroid:~$ apt-mark showhold
libegl-mesa0
libgbm1
libgl1-mesa-dri
libglapi-mesa
libglu1-mesa
libglx-mesa0
mesa-va-drivers
mesa-vdpau-drivers
mesa-vulkan-drivers
n2p@odroid:~$
Use the command apt-mark unhold with package names as an arguments to unhold them. Then next apt update will update with new version.

In case you like to use old version which has less rendering issue with X11 and Wayland, use this commands. This command seriese will download and install old packages (version 21.1.0-devel+202104231552), you can update with the lastest package later with sudo apt update && sudo apt upgrade.

Code: Select all

$ mkdir mesa
$ cd mesa
$ wget http://ppa.linuxfactory.or.kr/band-aid/install-mesa-packages.sh
$ sh ./install-mesa-packages.sh
$ sudo dpkg -i `ls *.deb`
$ sudo reboot
These users thanked the author tobetter for the post (total 2):
istanbulls (Tue May 11, 2021 6:57 am) • specs (Sat May 15, 2021 10:15 pm)

User avatar
tobetter
Posts: 8391
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 490 times
Been thanked: 1323 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

Quick benchmark comparison of GLMARK2 scores with Panfrost on ODROID-N2Plus (2016MHz/2400MHz/Performance) and ODROID-C4 (2016MHz/Performance)
The scores are only for reference and meaured on my setup, they could be a bit different on your system. Please note that 1000MHz is not practically running frequency, it's about 800+MHz in real.

Code: Select all

Mesa package version : 5:21.2.0-devel+202105101817
Glmark2 package version : 5:2021.02+202104220018
Attachments
GLMARK2 (2021.02) on Ubuntu Gnome Desktop with Panfrost.png
GLMARK2 (2021.02) on Ubuntu Gnome Desktop with Panfrost.png (97.51 KiB) Viewed 2683 times
These users thanked the author tobetter for the post (total 5):
istanbulls (Tue May 11, 2021 7:37 am) • odroid (Tue May 11, 2021 8:44 am) • brad (Tue May 11, 2021 9:09 am) • mctom (Tue May 11, 2021 7:03 pm) • amirul (Wed May 12, 2021 12:09 am)

amirul
Posts: 99
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 14 times
Been thanked: 12 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by amirul »

$ uname -a
Linux n2plus-pf 5.11.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.11.18-202105111802~hirsute (2021-05-11) aarch64 aarch64 aarch64 GNU/Linux
CPU/GPU both performance
glmark2-es2-wayland score 884, down slightly from 905 using previous kernel

User avatar
tobetter
Posts: 8391
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 490 times
Been thanked: 1323 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

amirul wrote:
Wed May 12, 2021 12:01 am
$ uname -a
Linux n2plus-pf 5.11.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.11.18-202105111802~hirsute (2021-05-11) aarch64 aarch64 aarch64 GNU/Linux
CPU/GPU both performance
glmark2-es2-wayland score 884, down slightly from 905 using previous kernel
The benchmark score would be a bit different and a bit various whenever you perform it or depends on system loads, so do not concern if it's not huge number. Also new kernel update has only device tree change which does not affect the performance. If you are not afraid of using new kernel which is not published yet, try 5.12 with sudo apt install linux-image-5.12.0-odroid-arm64 on ODROID-N2/ODROID-N2Plus.

User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by mctom »

I finally did the right thing and started doing automatic daily backups of the whole file system, rather than just /home. ;)
Now I can update kernels with no worries at all. I'll play with the new one in the weekend or something.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
tobetter
Posts: 8391
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 490 times
Been thanked: 1323 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

mctom wrote:
Wed May 12, 2021 12:50 am
I finally did the right thing and started doing automatic daily backups of the whole file system, rather than just /home. ;)
Now I can update kernels with no worries at all. I'll play with the new one in the weekend or something.
Are you meaning to create a snap image of whole system?

User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by mctom »

Ha! No, not at all. I've got this well massaged bash script that does daily backups at 7AM. Every backup is stored in a separate time-stamped directory, and inside is my whole "/". It makes incremental backups, so actually copies only files that have changed, and hard-links files that did not change, so they won't take unnecessary space.
I ignore /dev, /sys or /tmp, but definitely keep boot, etc, even usr. Especially after I forgot to back up my hand-crafted printer driver before reinstalling OS :(
It's been too many times then I could not boot because something went wrong (earlier with Armbian, now with Ubuntu). For once I can be completely sure my N2+ will boot again :D

However I'm being tempted to try and compile Sway 1.6 myself. It has some dependencies, meaning I'll have to compile whole Wayland as well. This time, however, I want to do this in some sort of container, rather than bloat my system with tons of libs and experimenting on live organism. I'll look into that Docker thing everyone's talking about.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
tobetter
Posts: 8391
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 490 times
Been thanked: 1323 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

mctom wrote:
Wed May 12, 2021 1:21 am
Ha! No, not at all. I've got this well massaged bash script that does daily backups at 7AM. Every backup is stored in a separate time-stamped directory, and inside is my whole "/". It makes incremental backups, so actually copies only files that have changed, and hard-links files that did not change, so they won't take unnecessary space.
I ignore /dev, /sys or /tmp, but definitely keep boot, etc, even usr. Especially after I forgot to back up my hand-crafted printer driver before reinstalling OS :(
It's been too many times then I could not boot because something went wrong (earlier with Armbian, now with Ubuntu). For once I can be completely sure my N2+ will boot again :D

However I'm being tempted to try and compile Sway 1.6 myself. It has some dependencies, meaning I'll have to compile whole Wayland as well. This time, however, I want to do this in some sort of container, rather than bloat my system with tons of libs and experimenting on live organism. I'll look into that Docker thing everyone's talking about.
Ok, thank you for explaining me.
I was seeing if there is Sway 1.6 package somewhere and I can put into my repository as well since we need a lightweight fancy wayland compositor...Arch guys loves Wayfire...I just look into them how much effort I can share to make them build. Let's see...if it's feasible. :)

User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by mctom »

Sway 1.6 is available here and there... https://repology.org/project/sway/versions
Most notably, AUR (of course), Manjaro, and Debian Experimental.
I downloaded Sway 1.6 package from Debian Experimental and just installed with dpkg, but it got upset that libwlroots was outdated. So I downloaded that as well. libwlroots were unhappy that wayland-client0 was outdated, and so on. Then Apt refused to work at all until I "fix" dependencies. Apt insisted that I delete sway completely to resolve the issue.
That was just a fun experiment to do before I carried on reinstalling the OS.

Wayfire was also on my list. It is definitely much easier to master than Sway, so might be a better choice for your repository. I really liked how Wayfire looks, but then I realized all that 3D nonsense is.. well, nonsense. :)

I'm pretty sure that if you included Sway in your repository I might be the only person to use it :D Sway is so lean it doesn't have a menu bar, file manager or anything. It's basically Weston with a few extra keyboard shortcuts and one config file.
Of course I'd appreciate your effort to prepare Sway for us, but I also respect your time and resources. Don't spend too much time on Sway, but on the other hand Wayfire sounds like a really good addition to your repository. I built it once, back on Armbian, so it should be no problem to you :)
Think about all those views on youtube :lol:
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

Skym
Posts: 27
Joined: Thu Dec 03, 2020 8:02 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 5 times
Been thanked: 2 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by Skym »

Hi @tebetter ,

I want to install ubuntu 21.04 with btrfs by using netboot image,

but it will automatically create ext4 partitions for me.

how can I do to have a btrfs filesystem root partition ?

User avatar
tobetter
Posts: 8391
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 490 times
Been thanked: 1323 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

Skym wrote:
Thu May 13, 2021 12:43 am
Hi @tebetter ,

I want to install ubuntu 21.04 with btrfs by using netboot image,

but it will automatically create ext4 partitions for me.

how can I do to have a btrfs filesystem root partition ?
You can change the file system type when the installer ask you to select a storage to install. The name of the dialog box must be "Partition disks" and do not go for "Guided partitioning" which will create the partitions by the installer.

amirul
Posts: 99
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 14 times
Been thanked: 12 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by amirul »

tobetter wrote:
Wed May 12, 2021 12:29 am
amirul wrote:
Wed May 12, 2021 12:01 am
$ uname -a
Linux n2plus-pf 5.11.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.11.18-202105111802~hirsute (2021-05-11) aarch64 aarch64 aarch64 GNU/Linux
CPU/GPU both performance
glmark2-es2-wayland score 884, down slightly from 905 using previous kernel
The benchmark score would be a bit different and a bit various whenever you perform it or depends on system loads, so do not concern if it's not huge number. Also new kernel update has only device tree change which does not affect the performance. If you are not afraid of using new kernel which is not published yet, try 5.12 with sudo apt install linux-image-5.12.0-odroid-arm64 on ODROID-N2/ODROID-N2Plus.
$ uname -a
Linux n2plus-pf 5.12.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.12.1-202105080719~hirsute (2021-05-07) aarch64 aarch64 aarch64 GNU/Linux
glmark2-es2-wayland score 896

User avatar
istanbulls
Posts: 584
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID; N2, C4, XU4, N2+, CH4
Location: Istanbul-Turkey
Has thanked: 359 times
Been thanked: 97 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by istanbulls »

Oh my God!!! :D

Code: Select all

n2p@odroid:~$ glmark2-es2-wayland
=======================================================
    glmark2 2021.02
=======================================================
    OpenGL Information
    GL_VENDOR:     Panfrost
    GL_RENDERER:   Mali G52 (Panfrost)
    GL_VERSION:    OpenGL ES 3.0 Mesa 21.2.0-devel (git-181beece3c)
=======================================================
[build] use-vbo=false: FPS: 707 FrameTime: 1.414 ms
[build] use-vbo=true: FPS: 759 FrameTime: 1.318 ms
[texture] texture-filter=nearest: FPS: 1449 FrameTime: 0.690 ms
[texture] texture-filter=linear: FPS: 1647 FrameTime: 0.607 ms
[texture] texture-filter=mipmap: FPS: 1761 FrameTime: 0.568 ms
[shading] shading=gouraud: FPS: 493 FrameTime: 2.028 ms
[shading] shading=blinn-phong-inf: FPS: 498 FrameTime: 2.008 ms
[shading] shading=phong: FPS: 474 FrameTime: 2.110 ms
[shading] shading=cel: FPS: 472 FrameTime: 2.119 ms
[bump] bump-render=high-poly: FPS: 173 FrameTime: 5.780 ms
[bump] bump-render=normals: FPS: 2017 FrameTime: 0.496 ms
[bump] bump-render=height: FPS: 1842 FrameTime: 0.543 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 1134 FrameTime: 0.882 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 411 FrameTime: 2.433 ms
[pulsar] light=false:quads=5:texture=false: FPS: 1998 FrameTime: 0.501 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 340 FrameTime: 2.941 ms
[desktop] effect=shadow:windows=4: FPS: 877 FrameTime: 1.140 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 266 FrameTime: 3.759 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 266 FrameTime: 3.759 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 340 FrameTime: 2.941 ms
[ideas] speed=duration: FPS: 300 FrameTime: 3.333 ms
[jellyfish] <default>: FPS: 692 FrameTime: 1.445 ms
[terrain] <default>: FPS: 38 FrameTime: 26.316 ms
[shadow] <default>: FPS: 322 FrameTime: 3.106 ms
[refract] <default>: FPS: 42 FrameTime: 23.810 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 1419 FrameTime: 0.705 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 1428 FrameTime: 0.700 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 1408 FrameTime: 0.710 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 1410 FrameTime: 0.709 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 1417 FrameTime: 0.706 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 1371 FrameTime: 0.729 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 1307 FrameTime: 0.765 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 1374 FrameTime: 0.728 ms
=======================================================
                                  glmark2 Score: 922 
=======================================================
n2p@odroid:~$ 

Code: Select all

n2p@odroid:~$ uname -a
Linux odroid 5.12.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.12.1-202105080719~hirsute (2021-05-07) aarch64 aarch64 aarch64 GNU/Linux
n2p@odroid:~$ 
I always thought these values were unreal and I never imagined that I would see these values. :)

ironically 922 score equivalent to s922x :roll: :twisted:

User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by mctom »

I think we should move to SuperTuxKart FPS as the standard way to measure performance ;)

By the way, I forgot to mention that Hedgewars work flawlessly in 2K. Menu looks laggy, but the actual game is perfect!
Also, in order to watch Youtube movies with GPU acceleration, I play them in mpv, like so:

Code: Select all

mpv https://www.youtube.com/watch?v=dQw4w9WgXcQ
It's also lighter on RAM than Firefox.

The weekend is coming, time to play with new kernel. :)
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

trwn2p
Posts: 75
Joined: Fri Oct 16, 2020 5:12 am
languages_spoken: english
ODROIDs: N2 Plus
Has thanked: 3 times
Been thanked: 13 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by trwn2p »

shemg repo for Gnome40 destroyed my Hirsute installation. :( Let me know when you (tobetter) have a way to install or if you create an image with latest UBU and gnome 40. I'll use my Deb 11 LXqt until then.

specs
Posts: 102
Joined: Sun Nov 24, 2019 12:14 pm
languages_spoken: english
ODROIDs: odroid n2/n2+
odroid c4
Has thanked: 29 times
Been thanked: 12 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by specs »

tobetter wrote:
Tue May 11, 2021 6:50 am
In case you like to use old version which has less rendering issue with X11 and Wayland, use this commands. This command seriese will download and install old packages (version 21.1.0-devel+202104231552), you can update with the lastest package later with sudo apt update && sudo apt upgrade.
For now I will wait until the 5.12.y kernel is a little more mature and stick to X11 with the old panfrost.
I guess I'll have to drop X11 eventually.

User avatar
istanbulls
Posts: 584
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID; N2, C4, XU4, N2+, CH4
Location: Istanbul-Turkey
Has thanked: 359 times
Been thanked: 97 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by istanbulls »

specs wrote:
Sat May 15, 2021 10:19 pm
tobetter wrote:
Tue May 11, 2021 6:50 am
In case you like to use old version which has less rendering issue with X11 and Wayland, use this commands. This command seriese will download and install old packages (version 21.1.0-devel+202104231552), you can update with the lastest package later with sudo apt update && sudo apt upgrade.
For now I will wait until the 5.12.y kernel is a little more mature and stick to X11 with the old panfrost.
I guess I'll have to drop X11 eventually.
The new update, kubuntu (KDE) works fine, "Yaru session on Xorg" works fine in Ubuntu.

I mostly use "Yaru session on Xorg" (X11) in Ubuntu and I am very satisfied.

amirul
Posts: 99
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 14 times
Been thanked: 12 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by amirul »

Firefox playing youtube videos, after a while memory usage shoots up totally locking up the machine.
Anyone seeing this?

Hirsute with both kernels 5.11 and 5.12

User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by mctom »

Indeed Firefox and Youtube in general need tons of memory. A warning signal for me is a few seconds of a freeze to spin up HDD with SWAP partition on it.

Some stuff you can try:
1. go to "about:preferences" page in Firefox, scroll down the general section to "Performance". There, set content process limit to one.
scrn-2021-05-16-20-32-51.png
scrn-2021-05-16-20-32-51.png (27.01 KiB) Viewed 2409 times
2. Run YouTube videos in mpv like I described here.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

amirul
Posts: 99
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 14 times
Been thanked: 12 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by amirul »

mctom wrote:
Mon May 17, 2021 3:44 am
Indeed Firefox and Youtube in general need tons of memory. A warning signal for me is a few seconds of a freeze to spin up HDD with SWAP partition on it.

Some stuff you can try:
1. go to "about:preferences" page in Firefox, scroll down the general section to "Performance". There, set content process limit to one.
scrn-2021-05-16-20-32-51.png

2. Run YouTube videos in mpv like I described here.
Thanks, I'll try 1. and see how it goes.

User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by mctom »

mctom wrote:
Sun May 09, 2021 8:38 am
glmark2-es2-wayland: 665
glmark2-wayland: 637
That was with 5.11 kernel. Right now with 5.12 just installed:

glmark2-es2-wayland: 714
glmark2-wayland: 693

The benchmark shows 7-8% improvement indeed on Sway. Supertuxkart works just like it was, about 40fps on 2K and detail setting 2/6.

Just out of sheer curiosity, I installed Weston to do the same test. For some reason, Weston slowed down dramatically. Even cursor is laggy and glmark2-es2-wayland returned scored 91 (did not finish the whole test, obviously it was going wrong).
Hmm..

EDIT: Weston was upset with Sway session working on another tty. When I turned Sway off, Weston's glmark2-es2-wayland topped at 805.
Still not 922, but like I said earlier, supertuxkart should be used as a benchmark instead. It works very well with settings 1/6 or 2/6, but once you select 3/6 it's awfully slow. I think it starts using features that are not yet covered by Panfrost optimization effort.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

amirul
Posts: 99
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 14 times
Been thanked: 12 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by amirul »

amirul wrote:
Mon May 17, 2021 3:58 am
mctom wrote:
Mon May 17, 2021 3:44 am
Indeed Firefox and Youtube in general need tons of memory. A warning signal for me is a few seconds of a freeze to spin up HDD with SWAP partition on it.

Some stuff you can try:
1. go to "about:preferences" page in Firefox, scroll down the general section to "Performance". There, set content process limit to one.
scrn-2021-05-16-20-32-51.png

2. Run YouTube videos in mpv like I described here.
Thanks, I'll try 1. and see how it goes.
Nope. It still does it.

User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by mctom »

Well, there are reports of Firefox memory leaks while playing youtube videos, but all seem to be solved now. I trust you do have a recent version of Firefox from hirsute repo.
My best guess is that perhaps you may have some non-standard plugins in the browser that do something wrong?
One more thing you can try is to capture a measurement in "about:memory" page and see if you can track down what takes up so much memory, and how much is too much. I could look into it if you cared to post the result here.
Other than that, try googling some good advice on how to combat memory leaks in Firefox - if the article starts with "get a better browser", try another one. ;)
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

amirul
Posts: 99
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 14 times
Been thanked: 12 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by amirul »

Its difficult to track down the excessive memory usage because when it happens, hard lock up of the box. The only plugin I'm using is u-block origin. I am trying now with a brand new profile to see if that makes a difference.

specs
Posts: 102
Joined: Sun Nov 24, 2019 12:14 pm
languages_spoken: english
ODROIDs: odroid n2/n2+
odroid c4
Has thanked: 29 times
Been thanked: 12 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by specs »

Do you have a swapfile and what are your swap settings?

You can vind the swap setting with "sysctl -a | grep vm":
vm.vfs_cache_pressure
vm.swappiness
vm.dirty_background_ratio
vm.dirty_ratio

This will not solve your problem, but it might change the lockup to a (severe) slowdown.
https://haydenjames.io/linux-performanc ... wap-space/

For the test I'd try to work with only a swapfile (no zramfs) and just adjust the above swap parameters so you'll get an early warning.
You could also try to force the mistake and run htop via ssh on a different computer.

amirul
Posts: 99
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 14 times
Been thanked: 12 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by amirul »

No swap. The new profile seems to be holding up well though, no OOM so far.

User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by mctom »

Either a new profile helped, or forced to apply new settings that you changed before. ;)
If it's the profile that was somehow corrupted, it might have something to do with plugins associated with it.

Swapfile is set up during Ubuntu install by default, you can check using "swapon" just to make sure if you really don't have any.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
istanbulls
Posts: 584
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID; N2, C4, XU4, N2+, CH4
Location: Istanbul-Turkey
Has thanked: 359 times
Been thanked: 97 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by istanbulls »

I have reserved 9GB swap file on the SSD and am using it. But I don't think it is very useful. I could not see any extra benefit. Maybe useful I don't know. :D

Code: Select all

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sdb12 during installation
UUID=ffb7ac66-2047-4672-b070-48a063d2d63d /               ext4    errors=remount-ro 0       1
# /boot was on /dev/sdb11 during installation
UUID=9ee56219-cf1c-4233-93a7-28485eacc298 /boot           ext4    defaults        0       2
UUID=1387804e-acd4-44df-82d6-0ad74d026369   swap          swap    sw              0       0

Attachments
Ekran Görüntüsü - 2021-05-19 10-12-13.png
Ekran Görüntüsü - 2021-05-19 10-12-13.png (102.48 KiB) Viewed 2269 times

User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by mctom »

istanbulls wrote:
Wed May 19, 2021 4:18 pm
But I don't think it is very useful. I could not see any extra benefit. Maybe useful I don't know.
See in "swapon" if it is in use after a few hours of using your computer.

Code: Select all

mctom@Tomusiomat-ARM:~$ uptime
 10:04:40 up 2 days, 12:26,  2 users,  load average: 1,31, 1,60, 1,34
mctom@Tomusiomat-ARM:~$ swapon
NAME      TYPE        SIZE   USED PRIO
/swapfile file      679,1M 676,4M    3
/dev/sda2 partition    32G  37,1M    2
It is a good idea to have some high priority swap in the fastest memory you have (eMMC in my case), and a big swap space with lower priority. Works for me very well. When I open a few tabs in Firefox, it surely is necessary. :)
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
istanbulls
Posts: 584
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID; N2, C4, XU4, N2+, CH4
Location: Istanbul-Turkey
Has thanked: 359 times
Been thanked: 97 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by istanbulls »

Swap works, no problem in working.
I'm not sure it's useful.

Code: Select all

n2p@odroid:~$ swapon -s
Dosya Adı				Tip		Boyut	Kullanılan	Öncelik
/dev/sda2                              	partition	9545724	1792	-2
n2p@odroid:~$ swapon
NAME      TYPE      SIZE USED PRIO
/dev/sda2 partition 9,1G 1,8M   -2
n2p@odroid:~$ 


User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by mctom »

Totally depends on what you're doing with your computer, I guess. For me, the only problems with RAM come from firefox - if you browse an online shop and open 10 tabs with things you consider buing, the RAM is almost full. It's totally the fault of website programmers, but what else can you do.
To save memory I just se up pi-hole on one of my stacked XU4s, to disable adblock in firefox and see if it helps at all.

I think I'll abandon firefox in favor of falkon someday, but moving all my bookmarks will be a pain in the butt.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

specs
Posts: 102
Joined: Sun Nov 24, 2019 12:14 pm
languages_spoken: english
ODROIDs: odroid n2/n2+
odroid c4
Has thanked: 29 times
Been thanked: 12 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by specs »

Indeed it totally depends on what you are doing.

My system:
vm.dirty_background_ratio = 10
vm.dirty_ratio = 20
vm.vfs_cache_pressure = 100
vm.swappiness = 60

With the settings you can force early swapping or late swapping.
No swapping (and depending on the OOM-killer) mostly results in sudden death.
Fine if you explicitly disable swap, but don't go complaining (memory is cheap and I think a slowdown is preferable to a crash).

If I'm correct I changed the default values tobetter provided slightly.
While tobetter can't provide settings to fit every need, he does provide some swap in a default installation.
Or perhaps Ubuntu adds swap by default.

If you wan't to slow down by usigng swap, try using zramfs as buffer.

User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by mctom »

amirul wrote:
Mon May 17, 2021 2:56 am
Firefox playing youtube videos, after a while memory usage shoots up totally locking up the machine.
Anyone seeing this?

Hirsute with both kernels 5.11 and 5.12
Recently I disabled memory cache in Firefox, and it did help me further save a lot of memory running it.
In about:config, change browser.cache.memory.enable to false.
These users thanked the author mctom for the post:
tobetter (Sun May 23, 2021 8:53 pm)
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

amirul
Posts: 99
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 14 times
Been thanked: 12 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by amirul »

mctom wrote:
Sun May 23, 2021 8:50 pm
amirul wrote:
Mon May 17, 2021 2:56 am
Firefox playing youtube videos, after a while memory usage shoots up totally locking up the machine.
Anyone seeing this?

Hirsute with both kernels 5.11 and 5.12
Recently I disabled memory cache in Firefox, and it did help me further save a lot of memory running it.
In about:config, change browser.cache.memory.enable to false.
Creating a new profile seems to have fixed it, but I'll give this config a try. Thanks.

amirul
Posts: 99
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 14 times
Been thanked: 12 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by amirul »

Spoke too soon. Happened again in youtube theater mode. Go figure.

User avatar
mctom
Posts: 440
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by mctom »

Yesterday I had a bizarre example of RAM flood by Firefox. I was browsing a PDF document, and on each attempt to zoom in or out on it, RAM got full and system got stuck for a while to shove some data to swap.

Actually, it's reproducible. https://datasheets.raspberrypi.org/cm4i ... asheet.pdf
Going into page 9 or any other with lots of vector graphics, zooming in or out proves to be an insanely RAM-intensive task. I was able to use 2GB of memory on zooming a PDF document. Huh.
Repeating the experiment in zathura, a pdf browser for Wayland, indeed it takes about 450MB of RAM to zoom into a schematic page of this document. Not >2GB though.

What can I say, let's finally switch the browser to something else?
My eyes are still on Falkon. It's one of very few "modern" browsers that have no X dependencies as well.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

Post Reply

Return to “Ubuntu (All Linux'es)”

Who is online

Users browsing this forum: No registered users and 4 guests