You are not logged in.

#1 2013-03-07 23:41:14

kdar
Member
From: Alabama!!!
Registered: 2009-06-27
Posts: 352

Compression utility built into kernel?

Can compression utility (say gzip) be integrated into kernel? (making it a module in a custom kernel)

Last edited by kdar (2013-03-07 23:45:39)

Offline

#2 2013-03-08 01:29:52

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 13,812
Website

Re: Compression utility built into kernel?

To what end (i.e. Why)?


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Online

#3 2013-03-08 02:09:18

kdar
Member
From: Alabama!!!
Registered: 2009-06-27
Posts: 352

Re: Compression utility built into kernel?

Well.. I was thinking to make performance of compression more efficient (in energy for example)... especially in a networking environment (cloud?), where large amount of lossless data have to be downloaded or uploaded.

I just found about e3compr for ext3... not sure how this can be used.. or if it is used somewhere with ext3.
http://sourceforge.net/projects/e3compr/
http://en.wikipedia.org/wiki/Ext3#Compression

Last edited by kdar (2013-03-08 02:10:20)

Offline

#4 2013-03-08 02:52:55

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,662

Re: Compression utility built into kernel?

Would it automatically be more energy efficient if it was in the kernel? Genuinely curious about this...


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Offline

#5 2013-03-08 06:34:24

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 12,965

Re: Compression utility built into kernel?

I assume it is in there already.  Look at the "File" /proc/config.gz  ; it is a gz version of the configuration file of the running kernel.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Like you, I have no idea what you are doing, but I am pretty sure it is wrong...Jasonwryan
----
How to Ask Questions the Smart Way

Offline

#6 2013-03-08 18:42:02

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,094
Website

Re: Compression utility built into kernel?

There's a number of compression routines already present in the kernel. Think about the support for lzo, lzma, bzip2, gzip and xz compressed bzImages and initramfs images.

Offline

#7 2013-03-08 19:02:48

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: Compression utility built into kernel?

^^^ This is exactly why those are the choices present in compressing the initramfs.  Think about it, with no userspace tools present, how else would the initramfs be decompressed when it is stored in these formats?

Offline

Board footer

Powered by FluxBB