Skip to contentSkip to conversation

reiser4 and swsusp (take 2)

DISCUSSION Filipe Almeida 2 participants 2 messages Mar 25, 2004 – Mar 26, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

I believe I have found the issue with software suspend and the repacker. The refrigerator() call inside prepare_repacking_session() is called regularly and should work as expected. The problem is that the software suspend system, before signaling all kernel threads, calls sys_sync() to flush the buffers out to disk. If sys_sync() is called while the repacker is running, it will only return at the end of the repacker run. So, if you start the repacker and call software suspend, the system will only suspend at the end of repacking, which could be a really long time.

Hope it helps...

Regards,
Filipe Almeida

--
Filipe Almeida <[email protected]>
http://mega.ist.utl.pt/~filipe/

#1 lore raw
Quoted 7 lines · Filipe Almeida

Hi,

I believe I have found the issue with software suspend and the repacker. The refrigerator() call inside prepare_repacking_session() is called regularly and should work as expected. The problem is that the software suspend system, before signaling all kernel threads, calls sys_sync() to flush the buffers out to disk. If sys_sync() is called while the repacker is running, it will

PF_FREEZE is not set yet?

Quoted 1 line

only return at the end of the repacker run.

It is a wrong behavior, regardless to sw suspend. However, the repacker is not a goal for the next reiser4 snapshot. Its (repacker) development is dalayed until we get reiser4 stable.

Quoted 5 lines

So, if you start the repacker and
call software suspend, the system will only suspend at the end of repacking, which could be a really long time.

Hope it helps...

great thanks.

Quoted 7 lines

Regards,
Filipe Almeida

--
Filipe Almeida <[email protected]>
http://mega.ist.utl.pt/~filipe/

Signature · 1 line
Alex.