OpenVZ Forum


Home » General » Support » *CLOSED* softirq stats for a VE
Re: *CLOSED* softirq stats for a VE [message #10896 is a reply to message #10887] Tue, 06 March 2007 15:06 Go to previous messageGo to previous message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

well... some ideas:
1. time should be accounted in cycles, as jiffies are too much inaccurate for such kind of accounting.

2. From net to VE path: it is possible to mark skb with cycles timestamp on it's arrival. When skb finally arrives to venet_xmit, delta_time = current_cycles() - skb->arrival_cycles can be accounted to the VE.

3. on VE to net path: skb can be marked with VEID in venet_xmit() when it is moved from VE to VE0 and with a cycles timestamp.
Before doing hard_start_xmit the same delta time as above can be accounted to appropriate VE.

4. Both (2) and (3) work fine if skb is not queued anywhere for delayed sending (e.g. traffic shaping). On delayed sending time accounting can be done partially: time used before queueing and time used after queueing.


http://static.openvz.org/userbars/openvz-developer.png
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: *SOLVED* Problem with restarting services
Next Topic: *SOLVED* Umount action script problem
Goto Forum:
  


Current Time: Wed Sep 10 09:32:40 GMT 2025

Total time taken to generate the page: 0.07474 seconds