cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
s3s_elec
Contributor
Contributor
646 Views
Registered: ‎09-28-2018

Linux kernel hangs when decompressing large files

Hello.

 

Using the Zynq(Z-7045) board and Petalinux 2016.2,

Linux hangs when unzipping .gz file obtained by ftp with "gzip -d"command.

 

Hanging hardly occurs when the size after decompression is several tens of megabytes, and the frequency of hangs increases from about 200 megabytes.

 

The memory related messages at boot time and df command result are as follows.

 

Memory: 752936K/786432K available (4856K kernel code, 220K rwdata, 1776K rodata, 2828K init, 213K bss, 17112K reserved, 16384K cma-reserved, 0K highmem)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xf0800000 - 0xff800000 ( 240 MB)
lowmem : 0xc0000000 - 0xf0000000 ( 768 MB)
pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
.text : 0xc0008000 - 0xc06825ec (6634 kB)
.init : 0xc0683000 - 0xc0946000 (2828 kB)
.data : 0xc0946000 - 0xc097d3e0 ( 221 kB)
.bss : 0xc097d3e0 - 0xc09b2a7c ( 214 kB)

 

root@TEST:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 376468 0 376468 0% /dev
tmpfs 386072 20 386052 0% /run
tmpfs 386072 16 386056 0% /var/volatile

 

Linux also hung when I put the files in root, /run or /var/volatile.

 

I want advice on how to prevent or investigate the hang.

Thank you.

0 Kudos
8 Replies
romisaas
Xilinx Employee
Xilinx Employee
555 Views
Registered: ‎02-12-2020

Hi @s3s_elec ,

I'd recommend you to do an upgrade and use the latest version for Pentalinux.

Here is the Link:https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/embedded-design-tools.html

Please let me know if you still need more assistance.


Thanks,
-Romisaa
------------------------------------------------------------------------------
Don't forget to reply, give Kudo and accept as solution
------------------------------------------------------------------------------
0 Kudos
watari
Professor
Professor
549 Views
Registered: ‎06-16-2013

Hi @s3s_elec 

 

It seems disk full issue.

Expand disk size or change type of file system from tmpfs to proper filesystem on proper device.

 

Best regards,

s3s_elec
Contributor
Contributor
467 Views
Registered: ‎09-28-2018

Hi romisaas,

Thank you for your reply.

I apologize for the late my reply.

 

I want to upgrade the version of Petalinux, but I can't try it immediately due to circumstances.

I'll look it up in a slightly different way.

 

Thank you.

0 Kudos
s3s_elec
Contributor
Contributor
459 Views
Registered: ‎09-28-2018

Hi watari,

Thank you for your reply.

I apologize for the late my reply.

 

After Linux completes unzipping the file without hanging
When I run the df command, the usage will be within the size of tmpfs.
(Example: 200MB / 386MB)
Does Linux use more disk space for the workspace when unzipping files?

 

This issue occurred on a custom board using Zynq with speed grade 3 and CPU clock set to 1GHz.
This issue did not occur on ZC706 (speed grade 2) and 666MHz CPU clock conditions.
It will be a little delayed due to the influence of COVID-19, but I will also try what happens when the CPU clock of the custom board is set to 666MHz.

 

Thank you.

0 Kudos
romisaas
Xilinx Employee
Xilinx Employee
435 Views
Registered: ‎02-12-2020

Hi @s3s_elec,

Yes, Compressed (zipped) files take up less disk space can be transferred from one to another machine more quickly than uncompressed files. Zip files can be easily extracted in Windows, macOS, and Linux using the utilities available for all operating systems.

Does the hand still exist?

Please let me know if you still need more assistance.
Thanks,
Romisaa
------------------------------------------------------------------------------
Don't forget to reply, give Kudo and accept as solution
------------------------------------------------------------------------------
0 Kudos
s3s_elec
Contributor
Contributor
422 Views
Registered: ‎09-28-2018

Hi @romisaas,

 

I'm sorry for my poor English.

The contents I wanted to write are as follows.

When I decompress the compressed file and then execute the df command, it seems that Linux disk has enough space.(Example: 200MB / 386MB)
If this problem(hang) is due to disk full,

While decompressing a compressed file, it may temporarily use more disk space than the decompressed file size.

 

I wrote it in a reply post to @watari,

Since the behavior seems to be different between CPU clock 1 GHz and 666 MHz(or custom board and ZC706),
I'll check a little more about that point.

 

Thank you.

0 Kudos
watari
Professor
Professor
391 Views
Registered: ‎06-16-2013

Hi @s3s_elec 

 

>Since the behavior seems to be different between CPU clock 1 GHz and 666 MHz(or custom board and ZC706),
>I'll check a little more about that point.

 

Um, it seems DRAM issue or power lane issue and so on.

Would you make sure DRAM parameter on Zynq and/or power consumption (CPU clock is 1GHz) ?

 

Best regards,

0 Kudos
s3s_elec
Contributor
Contributor
367 Views
Registered: ‎09-28-2018

Hi @watari,

 

Thank you for your advice.

It's a little later, but I'll check that as well.

 

Thank you.

0 Kudos