Why my application is waiting at sync_page for long time ?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Why my application is waiting at sync_page for long time ?
Hi,
We have RHEL 6.4 and there is a tool installed on this server, bip_server.
Whenever this is getting started, it is taking very long time of around 20-30 minutes and it waits at sync_page and in D1 state. There is no load on server, sufficient memory exists on server. ulimit is good (for that user which starts application).
Can somebody help me to understand, what else I need to check ?
Try strace, to see what it was doing, just before it hung.
There's probably other things in its /proc to dig into, for more clues, but Idk offhand.
Has it ever worked? Any oddities, like nfs swapspace? Vendor support?
I assume original RHEL kernel. Idk which kernel source file (anyone?)
Try strace, to see what it was doing, just before it hung.
There's probably other things in its /proc to dig into, for more clues, but Idk offhand.
Has it ever worked? Any oddities, like nfs swapspace? Vendor support?
I assume original RHEL kernel. Idk which kernel source file (anyone?)
Not sure, if I am using strace correctly, as I am not much knowledgeable on this. Does it give some clue ?
#2 probably right: just 'normal' performance issue
Now I think (not sure tho) that: the D state might be:
'normal' reading-disk-in-progress occurance!
Can you repeat that ps ... | grep <pid of process found in D state> LOTS of times, to see IF it is ALWAYS in D state?
I'm guessing MAYBE it's NOT!!!
I use just: strace -f -o myfile -p <#>
Do your two lines of dots, just mean: more of same omitted? (I'm guessing: Yes)
**I'm guessing it keeps on doing the seek&read(9,... Which would mean:
**It's not hung at all!!! A 'false-positive' of a hang, maybe! #2 simply right
What 'certainty/proof' do you see, that some actual activity/processing has hung?
Could it be that bip application simply does a huge amounts of reading to startup?
That would be just a performance issue, like dd reading TeraBytes, bs=1K each.
(Don't be upset IF my guess on this is wrong!!!)
Interesting dozen threads; ps has a -T; any ideas on them?
I haven't web-researched FUTEX_WAIT_PRIVATE (yet). Any other LQ'er have ideas? (I couldn't find "D1" state, just D)
It is still running and trying to come in operational state, as you can see in below output. In other servers, it takes 2-3 minutes to come up, but here, it is already close to 2 hours.
Quote:
[root@apps_db34 ~]# ps -eo ppid,pid,user,stat,pcpu,comm,wchan:32 | grep -i bip
1 2654 xms Dl 0.2 bip_server sync_page
[root@apps_db34 ~]# ps -ef | grep -i bip
xms 2654 1 0 13:52 pts/2 00:00:17 /export/xms/kle/bin/bip_server -f /export/xms/config/config.ini
root 6078 6053 0 15:47 pts/4 00:00:00 grep -i bip
[root@apps_db34 ~]# date
Thu Aug 24 15:47:28 PDT 2017
[root@apps_db34 ~]#
[root@apps_db34 ~]# strace -f -o myfile -p 2654
Process 2654 attached with 13 threads - interrupt to quit
[ Process PID=4842 runs in 32 bit mode. ]
^CProcess 2654 detached
Process 2655 detached
Process 2656 detached
Process 2657 detached
Process 2658 detached
Process 2659 detached
Process 2660 detached
Process 2661 detached
Process 2662 detached
Process 2663 detached
Process 2664 detached
Process 2665 detached
Process 4842 detached
[root@apps_db34 ~]#
Ah! I see! Then, I'd look into disk performance tools, to compare systems.
iostat, plus newer ones which I'm not familiar with. Web-search... Best wishes.
p.s. Figure out (lsof maybe) what file that fd 9 is, and time cp it /dev/null
Compare with good systems. ALL system&app configs same? dmesg errors?
It is not in KVM. This VM is running on VMWare. There is no NFS mount on server.
Quote:
[root@apps_db34 ~]# uname -a
Linux apps_db34 2.6.32-358.6.2.el6.x86_64 #1 SMP Tue May 14 15:48:21 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux
[root@apps_db34 ~]#
[root@apps_db34 ~]# cat /etc/*elea*
Red Hat Enterprise Linux Server release 6.4 (Santiago)
Red Hat Enterprise Linux Server release 6.4 (Santiago)
cpe:/o:redhat:enterprise_linux:6server:ga:server
[root@apps_db34 ~]#
That code was a bit of a problem child apparently, and was yanked from the kernel at 2.6.39. That would be May 2011.
Even allowing for RH backporting, I'd reckon it's time to upgrade rather than chasing these sort of things. Else raise a ticket with RH if still under support.
We do not have RH support for these servers (hosted on VMWare), so need to figure ourselves.
We can go with upgrade, but keeping that as secondary option. Because, this is not working in one of server out of other 3 nodes, while all are on same kernel level.
Were you able to find similar known issue related to this kernel level (Any link or bug file) ? If we have evidence that this kernel is problematic, we should be able to upgrade all nodes.
Last edited by abhisheks77; 08-25-2017 at 01:38 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.