pow function in kernel space

张晗 zganghanhan at foxmail.com
Thu Jun 19 12:40:59 UTC 2014


how can I implement, in an efficient, way the pow() function in kernel space ?  Is there any function I can use o r how I can evaluate pow function in kernel model?
  
 Thanks!
 
 
  ------------------
  
祝好,
 
张晗
 
 
 
---------- 
 
HanZhang
 
School of Computer Science
Tsinghua University, Beijing, 100084, P.R.CHINA
 
Mobile:  +86 156-526-59782
E-mail:   zhanghan at csnet1.cs.tsinghua.edu.cn

  
  

 

 ------------------ Original ------------------
  From:  "freebsd-net-request";<freebsd-net-request at freebsd.org>;
 Date:  Wed, Jun 18, 2014 08:00 PM
 To:  "freebsd-net"<freebsd-net at freebsd.org>; 
 
 Subject:  freebsd-net Digest, Vol 585, Issue 3

 

Send freebsd-net mailing list submissions to
freebsd-net at freebsd.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.freebsd.org/mailman/listinfo/freebsd-net
or, via email, send a message with subject or body 'help' to
freebsd-net-request at freebsd.org

You can reach the person managing the list at
freebsd-net-owner at freebsd.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of freebsd-net digest..."


Today's Topics:

   1. Re: netmap (Carlos Ferreira)
   2. Unusable Emulex "oce" driver version in -STABLE, 9.3  and
      CURRENT (Borja Marcos)
   3. [Bug 183391] [oce] 10gigabit networking problems with Emulex
      OCE 11102 CNA (bugzilla-noreply at freebsd.org)
   4. [Bug 183391] [oce] 10GbE networking problems with Emulex OCE
      11102 CNA (bugzilla-noreply at freebsd.org)
   5. [Bug 183391] [oce] 10GbE networking problems with Emulex OCE
      11102 CNA (bugzilla-noreply at freebsd.org)
   6. [Bug 183391] [oce] 10GbE networking problems with Emulex OCE
      11102 CNA (bugzilla-noreply at freebsd.org)
   7. Re: Unusable Emulex "oce" driver version in -STABLE, 9.3  and
      CURRENT (Borja Marcos)


----------------------------------------------------------------------

Message: 1
Date: Tue, 17 Jun 2014 15:03:30 +0100
From: Carlos Ferreira <carlosmf.pt at gmail.com>
To: Luigi Rizzo <rizzo at iet.unipi.it>
Cc: "freebsd-net at freebsd.org" <freebsd-net at freebsd.org>
Subject: Re: netmap
Message-ID:
<CAJpYY6XBg8=g7sjVbu+6+EG1-vW1dymsvD8pL-EB08B=_z=usA at mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

Great! :)
I will give you the results as soon as I can get them :)



On 17 June 2014 12:55, Luigi Rizzo <rizzo at iet.unipi.it> wrote:

> On Mon, Jun 16, 2014 at 5:30 PM, Carlos Ferreira <carlosmf.pt at gmail.com>
> wrote:
>
>> Ok, thanks for the enlightenment regarding the loss of performance.
>>
>> One question, just to be sure. Does the kernel module contains the VALA
>> switch code? Or do I need to compile extra code to have the switch working?
>> Also, where can I find the documentation to use the Vala Switch?
>>
>
> ?VALE is part of the netmap kernel module, the only thing you need
> to know to use it is port names:
> you can have multiple switch instances with multiple ports each,
>
> valeX:Y means port Y on switch X, X and Y are arbitrary strings
> with the constraint that the whole name must fit 15 characters.
>
> Details in the netmap manpage
>
> cheers
> luigi
>
>


-- 

Carlos Miguel Ferreira
Researcher at Telecommunications Institute
Aveiro - Portugal
Work E-mail - cmf at av.it.pt
Skype & GTalk -> carlosmf.pt at gmail.com
LinkedIn -> http://www.linkedin.com/in/carlosmferreira


------------------------------

Message: 2
Date: Tue, 17 Jun 2014 18:07:45 +0200
From: Borja Marcos <borjam at sarenet.es>
To: Stable Stable <freebsd-stable at freebsd.org>
Cc: freebsd-net at freebsd.org
Subject: Unusable Emulex "oce" driver version in -STABLE, 9.3  and
CURRENT
Message-ID: <8D93EDF7-AC0E-4707-AC62-55CBD5F3358D at sarenet.es>
Content-Type: text/plain; charset=us-ascii


Hello,

This should be fixed before the release of 9.3, and of course as soon as possible for the rest of the branches.

At least under 10-STABLE the "oce" driver can cause a panic when there's a lot of network traffic. I have been able to reproduce it
using "iperf". Sometimes the panic can be triggered within seconds of starting an iperf test.

There's a new driver available for download on the Emulex site, version 10.0.747.0, and it works perfectly. The source code compiles perfectly
under FreeBSD 10-STABLE (at least recent versions since April) and the kernel module loads without trouble.

There's a bug report covering this but seems to be forgotten :/

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=183391



Thanks!




Borja.



------------------------------

Message: 3
Date: Tue, 17 Jun 2014 23:38:42 +0000
From: bugzilla-noreply at freebsd.org
To: freebsd-net at FreeBSD.org
Subject: [Bug 183391] [oce] 10gigabit networking problems with Emulex
OCE 11102 CNA
Message-ID:
<bug-183391-2472-zejSX1HlEm at https.bugs.freebsd.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=183391

Kubilay Kocak <koobs at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |koobs at FreeBSD.org
            Version|unspecified                 |9.2-RELEASE

--- Comment #7 from Kubilay Kocak <koobs at FreeBSD.org> ---
Please attach:

* /var/run/dmesg.boot output
* pciconf pciconf -lveV

-- 
You are receiving this mail because:
You are the assignee for the bug.


------------------------------

Message: 4
Date: Tue, 17 Jun 2014 23:59:09 +0000
From: bugzilla-noreply at freebsd.org
To: freebsd-net at FreeBSD.org
Subject: [Bug 183391] [oce] 10GbE networking problems with Emulex OCE
11102 CNA
Message-ID:
<bug-183391-2472-N1qWbY8iyV at https.bugs.freebsd.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=183391

Kubilay Kocak <koobs at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mlavkin at gmail.com
            Summary|[oce] 10gigabit networking  |[oce] 10GbE networking
                   |problems with Emulex OCE    |problems with Emulex OCE
                   |11102 CNA                   |11102 CNA

--- Comment #8 from Kubilay Kocak <koobs at FreeBSD.org> ---
Pataki, Borjan, MLavkin,

We need a confirmation that this issue (panic) is still present on 9.3-BETA3 in
order to get this into 9.3-RELEASE. 

We have a very short window until -RELEASE, if one of you could provide that
confirmation, it will go a long way.

-- 
You are receiving this mail because:
You are the assignee for the bug.


------------------------------

Message: 5
Date: Wed, 18 Jun 2014 02:20:30 +0000
From: bugzilla-noreply at freebsd.org
To: freebsd-net at FreeBSD.org
Subject: [Bug 183391] [oce] 10GbE networking problems with Emulex OCE
11102 CNA
Message-ID:
<bug-183391-2472-USJ2pWrEab at https.bugs.freebsd.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=183391

--- Comment #9 from pataki.antal at gmail.com ---
(In reply to Kubilay Kocak from comment #7)
> Please attach:
> 
> * /var/run/dmesg.boot output
> * pciconf pciconf -lveV

Hi!

I am so sorry, but we didn't kept the unusable system from 2013 october until
today....
The system is upgraded to 9.2-STABLE and the Emulex cards fired out and
replaced with Intel X520 cards.
Like this, the system is operating good - in a production environment, so it is
not possible to change the hardware or the operating system.

So I can't send you the dmesg.boot from 2013 october with the emulex card on
fbsd 9.2-RELEASE, I am sorry.

-- 
You are receiving this mail because:
You are the assignee for the bug.


------------------------------

Message: 6
Date: Wed, 18 Jun 2014 02:23:27 +0000
From: bugzilla-noreply at freebsd.org
To: freebsd-net at FreeBSD.org
Subject: [Bug 183391] [oce] 10GbE networking problems with Emulex OCE
11102 CNA
Message-ID:
<bug-183391-2472-AUBNIV7z6U at https.bugs.freebsd.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=183391

--- Comment #10 from pataki.antal at gmail.com ---
Like my previous reply, I can't confirm this, because we workarounded the bug
in a way.
(upgraded to freebsd 9.2-stable and the emulex cards are changed to intel x520
cards)

I am so sorry, we couldn't wait for about 8 months for any solution, we needed
to use the servers in production - we spent many thousands of dollars for that,
not for keeping them in the corner. I hope you understood.

(In reply to Kubilay Kocak from comment #8)
> Pataki, Borjan, MLavkin,
> 
> We need a confirmation that this issue (panic) is still present on 9.3-BETA3
> in order to get this into 9.3-RELEASE. 
> 
> We have a very short window until -RELEASE, if one of you could provide that
> confirmation, it will go a long way.

-- 
You are receiving this mail because:
You are the assignee for the bug.


------------------------------

Message: 7
Date: Wed, 18 Jun 2014 09:35:26 +0200
From: Borja Marcos <borjam at sarenet.es>
To: Borja Marcos <borjam at sarenet.es>
Cc: freebsd-net at freebsd.org, Stable Stable
<freebsd-stable at freebsd.org>
Subject: Re: Unusable Emulex "oce" driver version in -STABLE, 9.3  and
CURRENT
Message-ID: <E0656BDA-56B1-4B77-B949-F1973B82385F at sarenet.es>
Content-Type: text/plain; charset=us-ascii


On Jun 17, 2014, at 6:07 PM, Borja Marcos wrote:

> 
> Hello,
> 
> This should be fixed before the release of 9.3, and of course as soon as possible for the rest of the branches.
> 
> At least under 10-STABLE the "oce" driver can cause a panic when there's a lot of network traffic. I have been able to reproduce it
> using "iperf". Sometimes the panic can be triggered within seconds of starting an iperf test.
> 
> There's a new driver available for download on the Emulex site, version 10.0.747.0, and it works perfectly. The source code compiles perfectly
> under FreeBSD 10-STABLE (at least recent versions since April) and the kernel module loads without trouble.
> 
> There's a bug report covering this but seems to be forgotten :/
> 
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=183391

In my case, the problem manifests itself running 10. Emulex provides a more recent driver which compiles perfectly and works perfectly (if we can safely assume that a weekend saturating a couple of interfaces runnning benchmarks with no glitches is a good hint).

I am now installing the latest beta of 9.3 to see if I can reproduce the panic. I will follow-up in a couple of hours if possible.





Borja.



------------------------------

Subject: Digest Footer

_______________________________________________
freebsd-net at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"

------------------------------

End of freebsd-net Digest, Vol 585, Issue 3
*******************************************
.


More information about the freebsd-net mailing list