what does sys_sync() function do when suspend is called?
Mulyadi Santosa
mulyadi.santosa at gmail.com
Thu Sep 22 13:02:13 EDT 2011
Hi...
On Thu, Sep 22, 2011 at 09:28, sandeep kumar <coolsandyforyou at gmail.com> wrote:
> Hi all,
> "sys_sync()" function is used in enter_suspend().
> It is taking a long time, when data transfer is happening, thus taking more
> time for the deivce to suspend.
>
> I am basically does not know much about filesystems, still wondering what
> sys_sync() function does?
>From what you describe, I guess it means sync-ing dirty pages back to
their backing devices. Or in other word, flushing pending write.
> 3) why it is taking more time when data transfer is happening?
Quite likely because sync must wait them, to make sure there are no
more dirty pages afterwards....thus it will be safe to suspend.
--
regards,
Mulyadi Santosa
Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
More information about the Kernelnewbies
mailing list