On 2006-02-20, Olivier Galibert <[email protected]> wrote:
> On Mon, Feb 20, 2006 at 03:13:23PM +0100, Rafael J. Wysocki wrote:
>> Actually a lot of the code that we use _has_ _been_ tested and debugged,
>> because it _is_ used on a daily basis by many people, like eg.:
>> - MD5 from the coreutils package,
>> - libLZF (the original one)
>> (openSSL wil be used soon for the image encryption).
>>
>> And I'm not trying to redo suspend2 in the user space. Instead I'm trying
>> to use the code that's _already_ _available_ in the user space to obtain
>> the functionality that suspend2 implements in the kernel space.
>
> "obtaining the functionality that suspend2 implements" means "redoing
> suspend2". Don't play on words, please.
through using the userspace helper he is able to use existing maintained
libaries, something that isn't possible with kernelspace suspend. This
is real code reduction.
> md5 is already in the kernel (twice). lzf is already in suspend2 (and
> arguably useful for more things than only suspending),
Why (when LZF would be useful for other stuff) nobody proposed inclusion
of it?
>> The problem is to merge suspend2 we'd have to clean it up first and
>> actually solve some problems that it works around. That, arguably,
>> would be more work than just implementing some _easy_ stuff in the
>> user space.
>
> Stuff that is _already_ _done_ and working.
While reading this 'discussion' I get the expression that swsusp isn't
working. But this isn't true: it works for me since I can't remember
when. The only problems were with some modules (ieee1394 had to be
unloaded before suspending) and minor glinches (writing the image
sometimes _very_ slow when suspending from a powersave cpufreq
governor..).
> 1- will uswsusp solve problems suspend2 doesn't? Real, currently
> encountered problems, not philosophical problems about
> kernel/userspace code positions[2].
swsusp works for me (TM), no problems at all, siree
> In particular, since according
> to Pavel 90+% of the problems are driver issues, why aren't you
> concentrating on drivers?
so submit driver specific patches through the driver's maintainer? Where
does Pavel enter the picture?
> 3- if the main problem is really that some parts of suspend2 should be
> in userspace instead of kernelspace, why aren't you working from the
> appropriate parts of the suspend2 code to port them to userspace use
> instead of going to coreutils/libLZF/etc?
code dupplication?
> 4- why aren't you actively working at pushing the parts of suspend2
> that actually are good and potentially useful to uswsusp in the
> mainline kernel. Do you really think nothing is worthwhile in there?
Maybe the mentioned problems with bitmaps and the module infrastructure
could explain that. Even Nigel said that the problem with evolutionary
patches is that suspend2 changes some fundamentals.
> Are you really, really sure you're not rejecting suspend2 in bulk
> because you didn't write it? Do we need a John W. Linville as suspend
> maintainer for things to go better?
Are you really threatening Pavel's position as maintainer? how subtle.
> Please tell me what is wrong in my perception of what is going on.
>
> OG, not even a suspend2 user.
andy, a long time swsusp user.
> [2] Otherwise you can start net5 in userspace just because it doesn't
> absolutely need to be in kernelspace.
it seems like "Van Jacobson's network channels" [0] would move some
stuff to userspace. Are you volunteering? (dislaimer: I have just
glimpsed at the article).
[0] http://lwn.net/Articles/169961/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]