[sisyphus] Новый swsusp и с ним проблема.

Alex Yustasov =?iso-8859-1?q?snmon_=CE=C1_server=2Eby?=
Вт Дек 16 19:41:25 MSK 2003


Здравствуйте.
В daedalus ушел новый kernel-feat-swsusp.
Много изменилось. Анонс в аттаче. Версия патча 2.0-rc3A.
В частности в lilo.conf теперь примерно такое
append="resume2=swap:/dev/hda1"
Но у меня он не работает.
Вернее засыпает и просыпается нормально, но команда

echo > /proc/swsusp/activate
возвращает 1. Понять почему я не могу.
Прошу помощи. Может кто-нибудь попробует? Хотя бы понять - 
это только у меня такое?

# strace echo > /proc/swsusp/activate
execve("/bin/echo", ["echo"], [/* 35 vars */]) = 0
uname({sys="Linux", node="localhost.localdomain", ...}) = 0
brk(0)                                  = 0x804bba8
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=65092, ...}) = 0
mmap2(NULL, 65092, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40012000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\207"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=1145896, ...}) = 0
mmap2(NULL, 1158976, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40022000
mprotect(0x40134000, 36672, PROT_NONE)  = 0
mmap2(0x40134000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x112) = 0x40134000
mmap2(0x40139000, 16192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40139000
close(3)                                = 0
munmap(0x40012000, 65092)               = 0
brk(0)                                  = 0x804bba8
brk(0x804bbd0)                          = 0x804bbd0
brk(0x804c000)                          = 0x804c000
fstat64(1, {st_mode=S_IFREG|0200, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40012000
write(1, "\n", 1)                       = -1071108976
close(1)                                = 0
munmap(0x40012000, 4096)                = 0
write(2, "echo: ", 6echo: )                   = 6
write(2, "write error", 11write error)             = 11
write(2, "\n", 1
)                       = 1
_exit(1)                                = ?

----------- следующая часть -----------
From: Nigel Cunningham <ncunningham на clear.net.nz>
To: swsusp-devel <swsusp-devel на lists.sourceforge.net>,
 Linux Kernel Mailing List <linux-kernel на vger.kernel.org>
Subject: [Swsusp-devel] Announce: Software Suspend 2.0rc3 for 2.4 and 2.6.

Hi all.

This is to announce 2.0-rc3, now being uploaded to swsusp.sf.net.

A number of small but significant user-visible changes have been made
with this release, so please read these notes carefully.

1) New format. There is now one 'core' patch which should be applied
regardless of your kernel version. In addition to the core patch, a
version-specific patch should be applied. These are available for both
2.4 and 2.6 series kernels. Core and version-specific patches should be
able to be updated independently.

PARTICULARLY IN THE CASE OF 2.6, THE VERSION SPECIFIC PATCH SHOULD BE
APPLIED FIRST. Otherwise, rejects will occur.

2) Changed kernel command line parameters. Instead of resume=,
resume_block= and resume_blocksize=, there is now a single resume2=
command line parameter. Note that that's RESUME2, not RESUME. The format
for this parameter is:

resume2=[writer]:[writer-specific-parameters]

At the moment, there is only one method of storing images - the
swapwriter. It is envisaged, that NFS support will be implemented
sometime in the future. (After I do the work of merging with Patrick).
For now, then, you will want to replace

resume=/dev/hda1 resume_block=0x560 resume_blocksize=1024

with

resume2=swap:/dev/hda1:0x560 на 1024

Later, you'll hopefully end up being able to have
resume2=nfs:192.168.1.1/images/laptop.

3) /proc/sys/kernel/swsusp is now deprecated. It is still in this
version, but I'd appreciate it if scripts could be changed to use the
new /proc/swsusp/all_settings entry instead. The functionality is
exactly the same. Only the location has changed.

In addition, a ton of user-invisible changes have been made. This
accounts for the size of the patch. A new internal API implements two
new kinds of 'plugins', designed to make adding new methods of
transforming the data to be stored ('transformers') and saving the data
('writers') easier to implement. This has allowed me to separate out the
swap specific code and the compression code as part of the big cleanup
I've also done. The /proc code has also been enhanced, so that plugins
can dynamically register new entries. This will also form a foundation
for kobject support in the 2.6 kernel. (That is to say, 2.6 swsusp will
soon stop using proc, and will use sysfs instead).

4) Compatibility with other 2.6 implementations.

This version should play nicely with the existing software suspend
implementations in the 2.6 kernel. Patrick's pmdisk implementation can
be activated as always using the sysfs interface, and Pavel's using echo
4 > /proc/acpi/sleep. This patch does replace the freezer implementation
those versions use, and Pavel's suspend will initialise but not use the
nice display. Apart from these minor changes, no differences should be
seen.

For those who simply with to upgrade from rc2, an incremental patch is
also available from Sourceforge. I've put it there rather than attaching
it because of its size.

Apart from the kobject changes mentioned above, this should be the last
set of big changes to the code base. Unless something has slipped my
mind, I believe I've just about implemented all the functionality we
need. From now on, then, I'll only be looking to update/improve the
documentation and clean and further document the code, to implement
kobject support and perhaps also SMP support (which should be a minor
changeset).

As always, I look forward to feedback.

Regards,

Nigel
-- 
Nigel Cunningham
495 St Georges Road South, Hastings 4201, New Zealand
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя     : =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Тип     : application/pgp-signature
Размер  : 189 байтов
Описание: =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Url     : <http://lists.altlinux.org/pipermail/sisyphus/attachments/20031216/170b8d96/attachment-0009.bin>
----------- следующая часть -----------
Scanned by evaluation version of Dr.Web antivirus Daemon 
http://drweb.ru/unix/



Подробная информация о списке рассылки Sisyphus