Kernel Newbies archive on lore.kernel.org
 help / color / Atom feed
From: Alex Painemilla <painemilla@gmail.com>
To: "Valdis Klētnieks" <valdis.kletnieks@vt.edu>
Cc: Jeno P <write2jeno@gmail.com>, kernelnewbies@kernelnewbies.org
Subject: Re: fsync slowness + XFS -- Regd.
Date: Tue, 19 Mar 2019 17:06:42 +1100
Message-ID: <CAEkLcsrtoKm=ticpWDoM=tbvLZZfiBD-Af7ekjn_F0CZyFEq0g@mail.gmail.com> (raw)
In-Reply-To: <17020.1552973568@turing-police>

[-- Attachment #1.1: Type: text/plain, Size: 911 bytes --]

Another possibility could be that the disk is in sleep mode and it needs to
wake up (A feature enabled on most green drives)

On Tue, Mar 19, 2019 at 5:03 PM Valdis Klētnieks <valdis.kletnieks@vt.edu>
wrote:

> On Tue, 19 Mar 2019 07:40:29 +0530, Jeno P said:
>
> > One of my module *(C/C++)* is writing to log files and periodically
> flushes
> > it using *fsync()*. Even for small amount of data, *fsync* is taking more
> > time *(>15 seconds)* than expected.
>
> Is it possible that some other process is applying a file lock to the log
> file?
> Any signs of I/O errors? 15 seconds is the sort of delay you might see on a
> RAID controller with one dead or partially dead disk throwing timeouts...
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>

[-- Attachment #1.2: Type: text/html, Size: 1404 bytes --]

<div dir="ltr">Another possibility could be that the disk is in sleep mode and it needs to wake up (A feature enabled on most green drives)</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 19, 2019 at 5:03 PM Valdis Klētnieks &lt;<a href="mailto:valdis.kletnieks@vt.edu">valdis.kletnieks@vt.edu</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, 19 Mar 2019 07:40:29 +0530, Jeno P said:<br>
<br>
&gt; One of my module *(C/C++)* is writing to log files and periodically flushes<br>
&gt; it using *fsync()*. Even for small amount of data, *fsync* is taking more<br>
&gt; time *(&gt;15 seconds)* than expected.<br>
<br>
Is it possible that some other process is applying a file lock to the log file?<br>
Any signs of I/O errors? 15 seconds is the sort of delay you might see on a<br>
RAID controller with one dead or partially dead disk throwing timeouts...<br>
<br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">Kernelnewbies@kernelnewbies.org</a><br>
<a href="https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</blockquote></div>

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

      reply index

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-19  2:10 Jeno P
2019-03-19  5:32 ` Valdis Klētnieks
2019-03-19  6:06   ` Alex Painemilla [this message]

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAEkLcsrtoKm=ticpWDoM=tbvLZZfiBD-Af7ekjn_F0CZyFEq0g@mail.gmail.com' \
    --to=painemilla@gmail.com \
    --cc=kernelnewbies@kernelnewbies.org \
    --cc=valdis.kletnieks@vt.edu \
    --cc=write2jeno@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Kernel Newbies archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/kernelnewbies/0 kernelnewbies/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kernelnewbies kernelnewbies/ https://lore.kernel.org/kernelnewbies \
		kernelnewbies@kernelnewbies.org kernelnewbies@archiver.kernel.org
	public-inbox-index kernelnewbies


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernelnewbies.kernelnewbies


AGPL code for this site: git clone https://public-inbox.org/ public-inbox