DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 10th November 2013
albator albator is offline
Port Guard
 
Join Date: Jul 2011
Location: France
Posts: 38
Thanked 0 Times in 0 Posts
Default system slow when plugged to network

Hi,

Since yesterday night my system has been reacting very slowly without I could find out why.

In fact, If I unplugged the network cable (leading to the Internet Box) or stop dhclient then everything is back to normal.
For example, opening programms like Keepass, Terminal, Gvim may take up to 10s and surfing the Net is dead slow.
The same thing happens with my netbook.
I changed dhcp for statics address whithout any success.
I thought it was due to my Internet Box, but my third netbook with FreeBSD is not affected by this behavior and I wonder why it affects programs that don't connect to Internet.

Example while opening Keepass :
Code:
$ keepassx &  vmstat 2 10
[1] 8129
 procs    memory       page                    disks    traps          cpu
 r b w    avm     fre  flt  re  pi  po  fr  sr sd0 sd1  int   sys   cs us sy id
 2 1 0 349352 10955632  181   0   0   0   0   0   1   1   11  3156  340  1  1 98
 0 1 0 353912 10950296 3191   0   0   0   0   0   0   0    9 12194  437  7  1 91
 1 1 0 353928 10950280   42   0   0   0   0   0   0   0    4  1592  223  0  0 100
 0 1 0 353912 10950296   45   0   0   0   0   0   0   0   16  1630  247  0  0 100
 0 1 0 353920 10950288   41   0   0   0   0   0   0   0    6  1602  228  0  0 99
 0 1 0 353912 10950296   41   0   0   0   0   0   0   0    4  1721  226  0  0 100
 0 1 0 353936 10950272   45   0   0   0   0   0   0   0   15  1621  231  0  0 100
 0 1 0 353948 10950260   44   0   0   0   0   0   0   0    3  1710  216  1  0 99 -> Keepass opens here
 1 1 0 353928 10950280   40   0   0   0   0   0   0   0    0  1498  212  0  0 100
 0 1 0 365496 10938340 4845   0   0   0   0   0   0   0    2 17389 1291  9  4 87

$ uname -a
OpenBSD LNBoX.my.domain 5.4 GENERIC.MP#0 amd64

$ ifconfig re0
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        priority: 0
        groups: egress
        media: Ethernet autoselect (100baseTX full-duplex)
        status: active
        inet6 fe80::1e6f:65ff:fe81:bfe4%re0 prefixlen 64 scopeid 0x1
        inet 192.168.0.10 netmask 0xffffff00 broadcast 192.168.0.255

$ netstat -ni
Name    Mtu   Network     Address              Ipkts Ierrs    Opkts Oerrs Colls
lo0     33144 <Link>                              14     0       14     0     0
lo0     33144 ::1/128     ::1                     14     0       14     0     0
lo0     33144 fe80::%lo0/ fe80::1%lo0             14     0       14     0     0
lo0     33144 127/8       127.0.0.1               14     0       14     0     0
re0     1500  <Link>      		       24214     0    22226     0     0
re0     1500  fe80::%re0/ fe80::1e6f:65ff:f    24214     0    22226     0     0
re0     1500  192.168.0/2 192.168.0.10         24214     0    22226     0     0
enc0*   0     <Link>                               0     0        0     0     0
pflog0  33144 <Link>                               0     0        0     0     0

$ dmesg|grep re0           
re0 at pci3 dev 0 function 0 "Realtek 8168" rev 0x03: RTL8168D/8111D (0x2800), apic 2 int 18,
I didn't find errors in /var/log and I didn't change anything in the system.

Any ideas ?

Thank you
Reply With Quote
  #2   (View Single Post)  
Old 10th November 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,708
Thanked 214 Times in 189 Posts
Default

Interesting report.

At first glance, the high number of pagefaults -- 3191-- at the startup of the application appeared to be a concern. I happen to use the same tool, so I ran the same test here on a little netbook and saw 3501 page faults spread over four seconds. So that wasn't it. From your symptoms, I could guess you have a network stack issue of some kind. I notice you are running your own GENERIC.MP kernel. Do you have any kernel configuration changes from the default GENERIC?

A dmesg(8) report may help us understand more about your kernel, as well as more about your hardware.
Reply With Quote
  #3   (View Single Post)  
Old 10th November 2013
albator albator is offline
Port Guard
 
Join Date: Jul 2011
Location: France
Posts: 38
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by jggimi View Post
I notice you are running your own GENERIC.MP kernel. Do you have any kernel configuration changes from the default GENERIC?
I used Mtiers openup tool to update against security holes.
I don't know why they patched the kernel as no security advisories has been made by OpenBSD.
I didn't update my crapbook wich suffers the same problem though with its 5.4 GENERIC#37 i386 kernel.

Now, I am getting IP conflict as my Internet box decided to give its own Internet adress to any other device instead of a local adress from class C !
A box reboot later, my computer is getting 192.168.0.x.x adress again... And reacts correctly. But I am sure that when it was slow there was no IP conflict at this time.

looking at /var/log/messages I found these memory errors :
Code:
# grep conflict messages
Nov 10 23:04:47 LNBoX /bsd: 0:0:0: mem address conflict 0xe0000000/0x20000000
Nov 10 23:13:41 LNBoX /bsd: 0:0:0: mem address conflict 0xe0000000/0x20000000
Nov 10 23:29:39 LNBoX /bsd: 0:0:0: mem address conflict 0xe0000000/0x20000000
Nov 11 00:01:20 LNBoX /bsd: 0:0:0: mem address conflict 0xe0000000/0x20000000
But again, my netbook reacts the same suglish way and without theses errors and this happened as soon as I plugged the ethernet cable.

To me, it looks like the problem comes from the Internet box, and for some reason, it affects OpenBSD and not FreeBSD
Reply With Quote
  #4   (View Single Post)  
Old 11th November 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,708
Thanked 214 Times in 189 Posts
Default

Without more information, I cannot provide any further analysis or even indications where to look to recreate or further isolate possible causes.

I would like to point out that there was a kernel patch this week that was both committed to 5.4-stable and published as a patch to 5.4-release, to eliminate a problem with the pflow(4) driver.
Reply With Quote
  #5   (View Single Post)  
Old 11th November 2013
albator albator is offline
Port Guard
 
Join Date: Jul 2011
Location: France
Posts: 38
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by jggimi View Post
Without more information, I cannot provide any further analysis or even indications where to look to recreate or further isolate possible causes.
To recreate the problem, it seems you just need to plug an OpenBSD system to my Internet box whether as a static or dynamic client.
In fact I found similar threads on OpenBSD 5.4 on the misc mailing list :
Date: Tue, 05 Nov 2013 08:38:49 +0100
Subject: Problems receiving IP with dhclient

Quote:
Originally Posted by jggimi View Post
I would like to point out that there was a kernel patch this week.
Thanks I missed this.
Reply With Quote
  #6   (View Single Post)  
Old 11th November 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,708
Thanked 214 Times in 189 Posts
Default

Quote:
Originally Posted by albator View Post
To recreate the problem, it seems you just need ...my Internet box ....
Only you know what that is. No one here can look over your shoulder and see it.

We here can only work from information you provide. These are the things I know about your problem:
  • You're running OpenBSD/amd64. Eventually, you disclosed you were running 5.4-stable through packaging provided by M:Tier, a third party service.
  • You are using the re(4) driver, which works with half a dozen different Realtek chipsets.
  • Your system uses an RFC 1918 address.
  • Your problem occurs whenever your local network is physically connected, whether or not you assign a static address or use dhclient.
  • No network I/O errors are reported through netstat, and whatever PHY is being used is using 100BaseTX full-duplex.
  • Your performance problem is not an abundance of processes waiting for resource, your vmstat output shows only one process waiting.
  • You have an unrelated memory conflict reported by the pci(4) driver. These messages have been discussed on this forum before, and I do not consider this to be to be an issue.
  • Your problem began yesterday or the day before, and no changes were made prior to its onset, which would tend to indicate a hardware problem rather than a software problem. However, you are running a kernel which includes a patch committed on Friday, so it is possible that your "no changes" comment was made without considering a revised OS to be a change. This indication of a hardware problem may be misleading.
Quote:
In fact I found similar threads on OpenBSD 5.4 on the misc mailing list :
Date: Tue, 05 Nov 2013 08:38:49 +0100
Subject: Problems receiving IP with dhclient
That problem report is specific to dhclient. You have stated that your problem occurs whether you use dhclient or assign a static address.

Last edited by jggimi; 11th November 2013 at 12:17 PM. Reason: clarity
Reply With Quote
  #7   (View Single Post)  
Old 11th November 2013
albator albator is offline
Port Guard
 
Join Date: Jul 2011
Location: France
Posts: 38
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by jggimi View Post
Your problem began yesterday or the day before, and no changes were made prior to its onset, which would tend to indicate a hardware problem rather than a software problem. However, you are running a kernel which includes a patch committed on Friday, so it is possible that your "no changes" comment was made without considering a revised OS to be a change. This indication of a hardware problem may be misleading.
As said before, I didn't update my netbook wich suffers the same problem with a 5.4 GENERIC#37 i386 kernel.
I pointed out whitch network card I used and not only its driver. The netbook shipped with a Realtek too but a 8139 instead of a 8168.

Thanks for your suggestions though.
Reply With Quote
  #8   (View Single Post)  
Old 13th November 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,708
Thanked 214 Times in 189 Posts
Default

I'm sorry you have been having trouble. You might consider posting to the misc@ mailing list, as it reaches a much wider audience than here, and the misc@ audience includes approximately half of the OS developers. This forum has a much smaller reach, though we are newbie focused and the misc@ mailing list is not. At all.

If you were to post this same information there, it is possible that someone will recognize your symptoms and recommend a solution. It is far more likely that your post will be ignored for being incomplete.

If you do get responses, these will invariably recommend -- with a range of civility betwen polite and very rudely -- that you post your dmesg, rather than excerpts. Without a complete dmesg, unless someone recognizes your particular issue, you won't get much help other than "try a recent snapshot". If you respond negatively there to requests for more information, no matter how rudely put, it is likely the only positive recommendations you will receive afterwards will be to please go use a different OS.

If instead of misc@, you submit your limited problem report to bugs@, any responses received are likely to be even ruder, if that is possible. Though someone may just reply off list with a link to www.openbsd.org/report.html in an effort to help you restructure your report.

Last edited by jggimi; 13th November 2013 at 11:38 AM. Reason: clarity of audience for misc@
Reply With Quote
  #9   (View Single Post)  
Old 14th November 2013
albator albator is offline
Port Guard
 
Join Date: Jul 2011
Location: France
Posts: 38
Thanked 0 Times in 0 Posts
Default

My systems have been working fine again for 2 days.

I understand that OpenBSD's users target is their own developers and that they don't feel like answering newbies questions which could be time consuming and not rewarding, fair enough. But this does not justify being rude to people. This is a shame because their site is welcoming with a nice and detailed FAQ and the man pages are great too.

By the way I bought the book Absolute OpenBSD 2nd ed, so I hope not to have many questions.
Reply With Quote
Old 14th November 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,708
Thanked 214 Times in 189 Posts
Default

It was not my intent to dissuade you from posting to a mailing list, only to set what I considered appropriate expectations should you post the same limited information there as you have here.

It has been my experience that newbie questions to misc@ or ports@ will be answered without rudeness when the newbies clearly show they've done their homework using official sources (FAQ / man pages / mailing list archives / source code). Newbie problems will be treated well when the homework includes problem reports that are as complete as the newbies can make them.

Should you reconsider my recommendation and post...
OpenBSD is source code maintained.
Support from developers may include patches to source code for you to test. As an OpenBSD user, you are expected to know how to apply patches to OpenBSD source code and build and install the affected components in response to your support requests. You are using M:Tier binary packaging for maintenance, and I don't know your familiarity with source code for Unix and Unix-like systems.

FAQ 5 and Absolute OpenBSD both will be of great value if you are unfamiliar with what to do with a patch you might receive in response to any problem report. If your problem is with a third party package, FAQ 15 will also help, as you may get patches to the associated port from the port's maintainer.

Last edited by jggimi; 14th November 2013 at 08:05 PM. Reason: typo, added list archives to homework, clarity, grammar
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is my OpenBSD system abnormally slow? (Newbie / pretty old hardware) Smith OpenBSD General 5 10th April 2012 03:10 AM
Create MS/XP file system so it will be recognized on a XP system. FBSD Guides 0 1st May 2010 06:49 AM
slow io from hdd knasbas OpenBSD General 3 25th July 2009 02:51 AM
Which file system use to share data on Bsd system? aleunix Other BSD and UNIX/UNIX-like 2 1st June 2008 04:14 PM
Booting with external USB drive plugged in? Bruco FreeBSD General 29 17th May 2008 05:39 PM


All times are GMT. The time now is 10:25 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick