search for: dequ

Displaying 20 results from an estimated 88 matches for "dequ".

Did you mean: deque
2013 Feb 11
1
Deques in R
I've been searching for information on using deques in R for the past couple of days. What little I've found has pointed me towards either the Rcpp package or the cpp project on R-forge (https://r-forge.r-project.org/projects/cpp/), but I've had trouble finding working examples. Are these the best ways to go about trying to implement a deq...
2010 May 12
2
[LLVMdev] New libc++ LLVM Subproject
...nctionality curtailment, but also eliminate numerous errors I've seen when debug mode and release mode get accidentally mixed. > What's driving libc++? The possibility of being a superior solution. ---------------- // Container overhead example #include <iostream> #include <deque> #include <map> int main() { typedef std::map<int, int> M; typedef std::deque<int> C; std::cout << "sizeof map<int, int> = " << sizeof(M)/sizeof(void*) << '\n'; std::cout << "sizeof deque<int> = "...
2017 Jan 16
4
[RFC 0/2] Propose a new pointer trait.
...ata consistency. This is in fact a working proof of concept available at (https://github.com/pmem/libcxx) combined with the allocator from (https://github.com/pmem/nvml). I will be happy to answer any questions you might have and await your feedback. Thanks, Tom Tomasz Kapela (2): pm: change deque typedef pm: add persistency_type typedef to pointer_traits include/__hash_table | 20 ++++++++------ include/__tree | 8 +++--- include/deque | 8 +++--- include/list...
2017 Mar 23
0
[PATCH net-next 7/8] vhost_net: try batch dequing from skb array
On 2017?03?22? 22:16, Michael S. Tsirkin wrote: > On Tue, Mar 21, 2017 at 12:04:46PM +0800, Jason Wang wrote: >> We used to dequeue one skb during recvmsg() from skb_array, this could >> be inefficient because of the bad cache utilization and spinlock >> touching for each packet. This patch tries to batch them by calling >> batch dequeuing helpers explicitly on the exported skb array and pass >> the s...
2017 Mar 29
2
[PATCH net-next 7/8] vhost_net: try batch dequing from skb array
On 2017?03?23? 13:34, Jason Wang wrote: > > >> >>> +{ >>> + if (rvq->rh != rvq->rt) >>> + goto out; >>> + >>> + rvq->rh = rvq->rt = 0; >>> + rvq->rt = skb_array_consume_batched_bh(rvq->rx_array, rvq->rxq, >>> + VHOST_RX_BATCH); >> A comment explaining why is
2017 Mar 29
0
[PATCH net-next 7/8] vhost_net: try batch dequing from skb array
Hi Jason, > > On 2017?03?23? 13:34, Jason Wang wrote: > > > > > >> > >>> +{ > >>> + if (rvq->rh != rvq->rt) > >>> + goto out; > >>> + > >>> + rvq->rh = rvq->rt = 0; > >>> + rvq->rt = skb_array_consume_batched_bh(rvq->rx_array, rvq->rxq, > >>> +
2017 Mar 29
1
[PATCH net-next 7/8] vhost_net: try batch dequing from skb array
On 2017?03?29? 18:46, Pankaj Gupta wrote: > Hi Jason, > >> On 2017?03?23? 13:34, Jason Wang wrote: >>> >>>>> +{ >>>>> + if (rvq->rh != rvq->rt) >>>>> + goto out; >>>>> + >>>>> + rvq->rh = rvq->rt = 0; >>>>> + rvq->rt =
2017 Mar 29
2
[PATCH net-next 7/8] vhost_net: try batch dequing from skb array
On 2017?03?23? 13:34, Jason Wang wrote: > > >> >>> +{ >>> + if (rvq->rh != rvq->rt) >>> + goto out; >>> + >>> + rvq->rh = rvq->rt = 0; >>> + rvq->rt = skb_array_consume_batched_bh(rvq->rx_array, rvq->rxq, >>> + VHOST_RX_BATCH); >> A comment explaining why is
2017 Mar 29
1
[PATCH net-next 7/8] vhost_net: try batch dequing from skb array
On 2017?03?29? 18:46, Pankaj Gupta wrote: > Hi Jason, > >> On 2017?03?23? 13:34, Jason Wang wrote: >>> >>>>> +{ >>>>> + if (rvq->rh != rvq->rt) >>>>> + goto out; >>>>> + >>>>> + rvq->rh = rvq->rt = 0; >>>>> + rvq->rt =
2010 May 11
0
[LLVMdev] New libc++ LLVM Subproject
On Tuesday 11 May 2010 15:43:21 Chris Lattner wrote: > Hi All, > > LLVM now includes a C++ standard library, written by Howard Hinnant. You > can read about it here: > http://blog.llvm.org/2010/05/new-libc-c-standard-library.html > > Or get the code here: > svn co http://llvm.org/svn/llvm-project/libcxx/trunk libcxx > > If you have questions or comments, please
2017 Mar 21
0
[PATCH net-next 7/8] vhost_net: try batch dequing from skb array
We used to dequeue one skb during recvmsg() from skb_array, this could be inefficient because of the bad cache utilization and spinlock touching for each packet. This patch tries to batch them by calling batch dequeuing helpers explicitly on the exported skb array and pass the skb back through msg_control for unde...
2002 Apr 06
0
Clarification required for Prio in CBQ dequeing order
Hi, I have been modifying the Wonder shaper to include another queue. My understanding was packets would be de queued to hardware in the following order: cbq1 -> sfq10 > sfq20 > sfq30. Also we only move onto the next queue when the preceding one is empty. However is seems to be prio xx number that reflects the order packets are de queued not to what flowid they belong to. If I
2017 Mar 22
2
[PATCH net-next 7/8] vhost_net: try batch dequing from skb array
On Tue, Mar 21, 2017 at 12:04:46PM +0800, Jason Wang wrote: > We used to dequeue one skb during recvmsg() from skb_array, this could > be inefficient because of the bad cache utilization and spinlock > touching for each packet. This patch tries to batch them by calling > batch dequeuing helpers explicitly on the exported skb array and pass > the skb back through...
2017 Mar 22
2
[PATCH net-next 7/8] vhost_net: try batch dequing from skb array
On Tue, Mar 21, 2017 at 12:04:46PM +0800, Jason Wang wrote: > We used to dequeue one skb during recvmsg() from skb_array, this could > be inefficient because of the bad cache utilization and spinlock > touching for each packet. This patch tries to batch them by calling > batch dequeuing helpers explicitly on the exported skb array and pass > the skb back through...
2017 Nov 28
6
[PATCH net,stable] vhost: fix skb leak in handle_rx()
From: Wei Xu <wexu at redhat.com> Matthew found a roughly 40% tcp throughput regression with commit c67df11f(vhost_net: try batch dequing from skb array) as discussed in the following thread: https://www.mail-archive.com/netdev at vger.kernel.org/msg187936.html Eventually we figured out that it was a skb leak in handle_rx() when sending packets to the VM. This usually happens when a guest can not drain out vq as fast as vhost fil...
2017 Nov 28
6
[PATCH net,stable] vhost: fix skb leak in handle_rx()
From: Wei Xu <wexu at redhat.com> Matthew found a roughly 40% tcp throughput regression with commit c67df11f(vhost_net: try batch dequing from skb array) as discussed in the following thread: https://www.mail-archive.com/netdev at vger.kernel.org/msg187936.html Eventually we figured out that it was a skb leak in handle_rx() when sending packets to the VM. This usually happens when a guest can not drain out vq as fast as vhost fil...
2010 May 11
9
[LLVMdev] New libc++ LLVM Subproject
Hi All, LLVM now includes a C++ standard library, written by Howard Hinnant. You can read about it here: http://blog.llvm.org/2010/05/new-libc-c-standard-library.html Or get the code here: svn co http://llvm.org/svn/llvm-project/libcxx/trunk libcxx If you have questions or comments, please direct them to one of the clang mailing lists. Thanks! -Chris
2010 Oct 21
1
[LLVMdev] MS VS2010 std implementation: "Cannot assign iterators to two different blocks!"
...///////////////// was equivalent to: //////////////////////////////////////////////////// void swap(_Ty& _Left, _Ty& _Right) { // exchange values stored at _Left and _Right _Ty _Tmp = Left; _Left = _Right; _Right = Tmp; } //////////////////////////////////////////////////// the deque being reversed had 3 items: `a1`, `a2`, and `a3` (`SuccIterator&` types) the 1st call to swap `_Left` was `a1` and `_Right` was `a3` the assignment: "_Left = _Right" was "a1 = a3" `a1` and `a3` had different `SuccIterator::Term`s, causing the assert in `SuccIterator::op...
2012 May 27
1
Thread Problem.
...n the music thread. That was just something I attempted but I don't believe that changed anything in terms of where the crash occurs. -strm_buf looks like this: char strm_buf[STRM_BUF_SIZE * 2] ATTRIBUTE_ALIGN(32); -Again it's another global variable. -music_queue looks like this: std::deque<RawOggData *> music_queue; -Another global variable. I'm now going to show the process of loading a song, storing it in that last mentioned deque and then how it differs when music is it's own thread and not it's own thread. The load song function looks something like this: v...
2016 Jul 08
2
Re: [PATCH v3 4/8] mllib: Add some imperative list manipulation functions.
...e with them. (At least the > > new functions do the same as Perl ones.) > > I agree, but for consistency I thought it was better to keep those > names rather than trying to think up new ones which would be different > from everything else. Actually I forgot that C++ (STL vector, deque etc) have functions called push_front, pop_front, push_back, pop_back. Don't know if that would be better. Is it obvious what front and back mean? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwm...