public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* compression tests in jffs2
@ 2006-11-17 22:06 Matías Zabaljáuregui
  2006-11-18 12:44 ` Artem Bityutskiy
  0 siblings, 1 reply; 5+ messages in thread
From: Matías Zabaljáuregui @ 2006-11-17 22:06 UTC (permalink / raw)
  To: linux-mtd

Hello, I'm interested in doing some tests on jffs2 compression  
algorithms (CPU, RAM, and compression ratio), and I've two questions:

- recompiling the jffs2 module is the only way to reconfigure the  
compression behaviour?

- Is there any documentation about using comprtest.c ?

thank you in advance

----------------------------------------------------------------------------------
Matías Zabaljáuregui
http://linux.linti.unlp.edu.ar






----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: compression tests in jffs2
  2006-11-17 22:06 compression tests in jffs2 Matías Zabaljáuregui
@ 2006-11-18 12:44 ` Artem Bityutskiy
  2006-11-18 16:35   ` Matías Zabaljáuregui
  0 siblings, 1 reply; 5+ messages in thread
From: Artem Bityutskiy @ 2006-11-18 12:44 UTC (permalink / raw)
  To: Matías Zabaljáuregui; +Cc: linux-mtd

Hi Matías,

On Fri, 2006-11-17 at 19:06 -0300, Matías Zabaljáuregui wrote:
> Hello, I'm interested in doing some tests on jffs2 compression  
> algorithms (CPU, RAM, and compression ratio), and I've two questions:

sounds promising!

> - recompiling the jffs2 module is the only way to reconfigure the  
> compression behaviour?

Yes at the moment. But adding dynamic and per-file compression so would
cool.

> - Is there any documentation about using comprtest.c ?

Unfortunately no. There are not a lot of JFFS2 documentation. You'll
need to dig the sources which are somewhat not very easy to dig. Feel
free to ask questions.

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: compression tests in jffs2
  2006-11-18 12:44 ` Artem Bityutskiy
@ 2006-11-18 16:35   ` Matías Zabaljáuregui
  2006-11-18 22:42     ` Josh Boyer
  0 siblings, 1 reply; 5+ messages in thread
From: Matías Zabaljáuregui @ 2006-11-18 16:35 UTC (permalink / raw)
  To: dedekind; +Cc: linux-mtd


OK! Thank you for your answer

>
>> - recompiling the jffs2 module is the only way to reconfigure the
>> compression behaviour?
>
> Yes at the moment. But adding dynamic and per-file compression so would
> cool.
>

Do you think a /proc entry is a suitable mecanism for runtime  
compression configuration?


-------------------------------------
Matías Zabaljáuregui
linux.linti.unlp.edu.ar

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: compression tests in jffs2
  2006-11-18 16:35   ` Matías Zabaljáuregui
@ 2006-11-18 22:42     ` Josh Boyer
  2006-11-20 19:42       ` Matías Zabaljáuregui
  0 siblings, 1 reply; 5+ messages in thread
From: Josh Boyer @ 2006-11-18 22:42 UTC (permalink / raw)
  To: Matías Zabaljáuregui; +Cc: linux-mtd

On Sat, 2006-11-18 at 13:35 -0300, Matías Zabaljáuregui wrote:
> OK! Thank you for your answer
> 
> >
> >> - recompiling the jffs2 module is the only way to reconfigure the
> >> compression behaviour?
> >
> > Yes at the moment. But adding dynamic and per-file compression so would
> > cool.
> >
> 
> Do you think a /proc entry is a suitable mecanism for runtime  
> compression configuration?

Please avoid /proc for anything.  The compression type has nothing to do
with processes, so it doesn't belong in /proc.

I would suggest either using a mount option if you want to make the
whole filesystem use a particular type of compression, or use xattrs to
specify compression type on a per file basis.  A third option would be
to use a sysfs entry similar to how you would use /proc.

josh

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: compression tests in jffs2
  2006-11-18 22:42     ` Josh Boyer
@ 2006-11-20 19:42       ` Matías Zabaljáuregui
  0 siblings, 0 replies; 5+ messages in thread
From: Matías Zabaljáuregui @ 2006-11-20 19:42 UTC (permalink / raw)
  To: linux-mtd

yes, I know... thank you for the advice.

In compr.c file, I can see some "stats" and "compression-mode" getters  
and setters, between  CONFIG_JFFS2_PROC  #ifdef and #endif... Do you  
think it is posible to reuse this code for implementing a sysfs  
interface?


----------------------------------------------------------------------------------
Matías Zabaljáuregui
http://linux.linti.unlp.edu.ar



Quoting Josh Boyer <jwboyer@linux.vnet.ibm.com>:

> On Sat, 2006-11-18 at 13:35 -0300, Matías Zabaljáuregui wrote:
>> OK! Thank you for your answer
>>
>> >
>> >> - recompiling the jffs2 module is the only way to reconfigure the
>> >> compression behaviour?
>> >
>> > Yes at the moment. But adding dynamic and per-file compression so would
>> > cool.
>> >
>>
>> Do you think a /proc entry is a suitable mecanism for runtime
>> compression configuration?
>
> Please avoid /proc for anything.  The compression type has nothing to do
> with processes, so it doesn't belong in /proc.
>
> I would suggest either using a mount option if you want to make the
> whole filesystem use a particular type of compression, or use xattrs to
> specify compression type on a per file basis.  A third option would be
> to use a sysfs entry similar to how you would use /proc.
>
> josh
>
>
>



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-11-20 19:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-17 22:06 compression tests in jffs2 Matías Zabaljáuregui
2006-11-18 12:44 ` Artem Bityutskiy
2006-11-18 16:35   ` Matías Zabaljáuregui
2006-11-18 22:42     ` Josh Boyer
2006-11-20 19:42       ` Matías Zabaljáuregui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox