Tar extraction on ODROID-MC1 with Ubuntu18.04 minimal

Post Reply
agentfrostyqueen
Posts: 3
Joined: Wed Jun 24, 2020 6:07 pm
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 0
Contact:

Tar extraction on ODROID-MC1 with Ubuntu18.04 minimal

Post by agentfrostyqueen »

Tar extraction on ODROID-MC1 with Ubuntu18.04 minimal takes so long. For example, when I extract 50MB file, it took more than 5mins sometimes 30mins. Let me know how I can fix or troubleshoot this.

mad_ady
Posts: 8164
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 568 times
Been thanked: 406 times
Contact:

Re: Tar extraction on ODROID-MC1 with Ubuntu18.04 minimal

Post by mad_ady »

What filesystem and medium are you untarring to?
You could try to copy the tar file to /dev/shm and untar it there (it's a ramdisk).

agentfrostyqueen
Posts: 3
Joined: Wed Jun 24, 2020 6:07 pm
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: Tar extraction on ODROID-MC1 with OpenMediaVault

Post by agentfrostyqueen »

thank you for your response. I tried to isolate the issue.
When I tried to extract the file on the NFS server(OMV on mc1) it looks fine.
when I tried to extract the file on the /home/<username> of ubuntu18 (on mc1) it looks fine also.
when I mount the nfs to ubuntu18(on mc1) the issue occurs.
when I mount the nfs to centos 8(on my laptop) the issue also occurs.
*note NFS server is also mc1 with openmediavault

mad_ady
Posts: 8164
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 568 times
Been thanked: 406 times
Contact:

Re: Tar extraction on ODROID-MC1 with Ubuntu18.04 minimal

Post by mad_ady »

Does the rar contain lots of small files? What nfs mount options do you use? Here are mine, and I get decent performance:

/etc/exports: *(insecure,nohide,anonuid=1001,all_squash,rw,anongid=1001,no_subtree_check)

autofs (client):
-hard,intr,nodev,nosuid,users,vers=3,rsize=131072,wsize=131072,namlen=255,timeo=20,retrans=5,proto=tcp,rw

brad
Posts: 1120
Joined: Tue Mar 29, 2016 1:22 pm
languages_spoken: english
ODROIDs: C2 N1 N2 H2 (64 bit ftw)
Location: Australia
Has thanked: 46 times
Been thanked: 93 times
Contact:

Re: Tar extraction on ODROID-MC1 with Ubuntu18.04 minimal

Post by brad »

mad_ady wrote:
Wed Jun 24, 2020 11:25 pm
Does the rar contain lots of small files? What nfs mount options do you use? Here are mine, and I get decent performance:

/etc/exports: *(insecure,nohide,anonuid=1001,all_squash,rw,anongid=1001,no_subtree_check)

autofs (client):
-hard,intr,nodev,nosuid,users,vers=3,rsize=131072,wsize=131072,namlen=255,timeo=20,retrans=5,proto=tcp,rw
The tcp option used here can make a big difference in some cases depending on the network and other settings (it is default generally for nfs4 but not nfs3)

If udp traffic is dropped or received out of order client needs to work this out itself and retry where as with tcp it will know straight up and just request that packet again.

agentfrostyqueen
Posts: 3
Joined: Wed Jun 24, 2020 6:07 pm
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: Tar extraction on ODROID-MC1 with Ubuntu18.04 minimal

Post by agentfrostyqueen »

Here's my client options _netdev,x-systemd.automount,nolock,soft,intr,tcp,bg,rw

mad_ady
Posts: 8164
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 568 times
Been thanked: 406 times
Contact:

Re: Tar extraction on ODROID-MC1 with Ubuntu18.04 minimal

Post by mad_ady »

Try with my options as well. See if it makes any difference

Post Reply

Return to “Issues”

Who is online

Users browsing this forum: No registered users and 7 guests