qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [POLL] slirp statistics - enable or drop them?
@ 2009-06-22 12:28 Jan Kiszka
  2009-06-22 12:36 ` Avi Kivity
  2009-06-22 13:09 ` Anthony Liguori
  0 siblings, 2 replies; 8+ messages in thread
From: Jan Kiszka @ 2009-06-22 12:28 UTC (permalink / raw)
  To: qemu-devel

Hi,

I just broke (locally) the slirp statistics. You know: "info slirp".
Maybe you don't because they are off by default, and there is even no
hidden configure switch to enable them ("#define LOG_ENABLED" or
"-DLOG_ENABLED" is required). Before fixing them again, I wonder if
there are actually use cases out there.

Basically I have three options now:

 - drop them completely (would make my nice, 1600-lines dropping slirp
   cleanup patch even nicer...)
 - fix them and leave them disabled, maybe adding some
   --enable-slirpstats to configure
 - fix them, but turn them on by default again so that Joe User is able
   to, well, actually look at them

Feedback appreciated.

Thanks,
Jan

-- 
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] [POLL] slirp statistics - enable or drop them?
  2009-06-22 12:28 [Qemu-devel] [POLL] slirp statistics - enable or drop them? Jan Kiszka
@ 2009-06-22 12:36 ` Avi Kivity
  2009-06-22 13:00   ` Jan Kiszka
  2009-06-22 13:09 ` Anthony Liguori
  1 sibling, 1 reply; 8+ messages in thread
From: Avi Kivity @ 2009-06-22 12:36 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: qemu-devel

On 06/22/2009 03:28 PM, Jan Kiszka wrote:
> I just broke (locally) the slirp statistics. You know: "info slirp".
> Maybe you don't because they are off by default, and there is even no
> hidden configure switch to enable them ("#define LOG_ENABLED" or
> "-DLOG_ENABLED" is required). Before fixing them again, I wonder if
> there are actually use cases out there.
>
> Basically I have three options now:
>
>   - drop them completely (would make my nice, 1600-lines dropping slirp
>     cleanup patch even nicer...)
>   - fix them and leave them disabled, maybe adding some
>     --enable-slirpstats to configure
>   - fix them, but turn them on by default again so that Joe User is able
>     to, well, actually look at them
>
> Feedback appreciated.
>    

I don't see the need for slirp stats.  A production deployment is not 
going to use slirp, and a developer deployment won't need slirp stats.


-- 
error compiling committee.c: too many arguments to function

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] [POLL] slirp statistics - enable or drop them?
  2009-06-22 12:36 ` Avi Kivity
@ 2009-06-22 13:00   ` Jan Kiszka
  2009-06-22 14:30     ` Alexander Graf
  0 siblings, 1 reply; 8+ messages in thread
From: Jan Kiszka @ 2009-06-22 13:00 UTC (permalink / raw)
  To: Avi Kivity; +Cc: qemu-devel

Avi Kivity wrote:
> On 06/22/2009 03:28 PM, Jan Kiszka wrote:
>> I just broke (locally) the slirp statistics. You know: "info slirp".
>> Maybe you don't because they are off by default, and there is even no
>> hidden configure switch to enable them ("#define LOG_ENABLED" or
>> "-DLOG_ENABLED" is required). Before fixing them again, I wonder if
>> there are actually use cases out there.
>>
>> Basically I have three options now:
>>
>>   - drop them completely (would make my nice, 1600-lines dropping slirp
>>     cleanup patch even nicer...)
>>   - fix them and leave them disabled, maybe adding some
>>     --enable-slirpstats to configure
>>   - fix them, but turn them on by default again so that Joe User is able
>>     to, well, actually look at them
>>
>> Feedback appreciated.
>>    
> 
> I don't see the need for slirp stats.  A production deployment is not
> going to use slirp, and a developer deployment won't need slirp stats.
> 

OK, drop++.

BTW, there is one definitely useful part of "info slirp": the connection
listing at its end. It's basically what Alexander Graf recently
contributed, but more complete. I already factored this part out and
will submit an advanced version, likely under "info usernet" - who knows
what "slirp" means...

Jan

-- 
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] [POLL] slirp statistics - enable or drop them?
  2009-06-22 12:28 [Qemu-devel] [POLL] slirp statistics - enable or drop them? Jan Kiszka
  2009-06-22 12:36 ` Avi Kivity
@ 2009-06-22 13:09 ` Anthony Liguori
  2009-06-22 13:58   ` Jan Kiszka
  1 sibling, 1 reply; 8+ messages in thread
From: Anthony Liguori @ 2009-06-22 13:09 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: qemu-devel

Jan Kiszka wrote:
> Hi,
>
> I just broke (locally) the slirp statistics. You know: "info slirp".
> Maybe you don't because they are off by default, and there is even no
> hidden configure switch to enable them ("#define LOG_ENABLED" or
> "-DLOG_ENABLED" is required). Before fixing them again, I wonder if
> there are actually use cases out there.
>
> Basically I have three options now:
>
>  - drop them completely (would make my nice, 1600-lines dropping slirp
>    cleanup patch even nicer...)
>   

Yes, I'd say drop them.

What's this "dropping slirp cleanup patch"?  Just something you use 
locally or do you plan on pushing it to the list?

Regards,

Anthony Liguori

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] [POLL] slirp statistics - enable or drop them?
  2009-06-22 13:09 ` Anthony Liguori
@ 2009-06-22 13:58   ` Jan Kiszka
  0 siblings, 0 replies; 8+ messages in thread
From: Jan Kiszka @ 2009-06-22 13:58 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: qemu-devel

Anthony Liguori wrote:
> Jan Kiszka wrote:
>> Hi,
>>
>> I just broke (locally) the slirp statistics. You know: "info slirp".
>> Maybe you don't because they are off by default, and there is even no
>> hidden configure switch to enable them ("#define LOG_ENABLED" or
>> "-DLOG_ENABLED" is required). Before fixing them again, I wonder if
>> there are actually use cases out there.
>>
>> Basically I have three options now:
>>
>>  - drop them completely (would make my nice, 1600-lines dropping slirp
>>    cleanup patch even nicer...)
>>   
> 
> Yes, I'd say drop them.
> 
> What's this "dropping slirp cleanup patch"?  Just something you use
> locally or do you plan on pushing it to the list?

Hacking on slirp, I quickly got sick of of all those "#if 0", "/*
no-longer-used */" or "#ifndef CONFIG_QEMU" and finally dropped them.
It's not a complete cleanup yet (e.g. one would have to go through
slirp_config.h as well, and we need a re-indention run), but it's a start.

Will definitely post it, at latest when my queue is about to overflow
(currently 30 patches, still increasing).

Jan

-- 
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] [POLL] slirp statistics - enable or drop them?
  2009-06-22 13:00   ` Jan Kiszka
@ 2009-06-22 14:30     ` Alexander Graf
  2009-06-22 14:50       ` Jan Kiszka
  0 siblings, 1 reply; 8+ messages in thread
From: Alexander Graf @ 2009-06-22 14:30 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: Avi Kivity, qemu-devel


On 22.06.2009, at 15:00, Jan Kiszka wrote:

> Avi Kivity wrote:
>> On 06/22/2009 03:28 PM, Jan Kiszka wrote:
>>> I just broke (locally) the slirp statistics. You know: "info slirp".
>>> Maybe you don't because they are off by default, and there is even  
>>> no
>>> hidden configure switch to enable them ("#define LOG_ENABLED" or
>>> "-DLOG_ENABLED" is required). Before fixing them again, I wonder if
>>> there are actually use cases out there.
>>>
>>> Basically I have three options now:
>>>
>>>  - drop them completely (would make my nice, 1600-lines dropping  
>>> slirp
>>>    cleanup patch even nicer...)
>>>  - fix them and leave them disabled, maybe adding some
>>>    --enable-slirpstats to configure
>>>  - fix them, but turn them on by default again so that Joe User is  
>>> able
>>>    to, well, actually look at them
>>>
>>> Feedback appreciated.
>>>
>>
>> I don't see the need for slirp stats.  A production deployment is not
>> going to use slirp, and a developer deployment won't need slirp  
>> stats.
>>
>
> OK, drop++.
>
> BTW, there is one definitely useful part of "info slirp": the  
> connection
> listing at its end. It's basically what Alexander Graf recently
> contributed, but more complete. I already factored this part out and
> will submit an advanced version, likely under "info usernet" - who  
> knows
> what "slirp" means...

The cleanup wouldn't drop the connection listing, would it? :-)
That's about the only thing I care about when it comes to any info  
regarding slirp.

Alex

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] [POLL] slirp statistics - enable or drop them?
  2009-06-22 14:30     ` Alexander Graf
@ 2009-06-22 14:50       ` Jan Kiszka
  2009-06-22 14:51         ` Alexander Graf
  0 siblings, 1 reply; 8+ messages in thread
From: Jan Kiszka @ 2009-06-22 14:50 UTC (permalink / raw)
  To: Alexander Graf; +Cc: Avi Kivity, qemu-devel

Alexander Graf wrote:
> 
> On 22.06.2009, at 15:00, Jan Kiszka wrote:
> 
>> Avi Kivity wrote:
>>> On 06/22/2009 03:28 PM, Jan Kiszka wrote:
>>>> I just broke (locally) the slirp statistics. You know: "info slirp".
>>>> Maybe you don't because they are off by default, and there is even no
>>>> hidden configure switch to enable them ("#define LOG_ENABLED" or
>>>> "-DLOG_ENABLED" is required). Before fixing them again, I wonder if
>>>> there are actually use cases out there.
>>>>
>>>> Basically I have three options now:
>>>>
>>>>  - drop them completely (would make my nice, 1600-lines dropping slirp
>>>>    cleanup patch even nicer...)
>>>>  - fix them and leave them disabled, maybe adding some
>>>>    --enable-slirpstats to configure
>>>>  - fix them, but turn them on by default again so that Joe User is able
>>>>    to, well, actually look at them
>>>>
>>>> Feedback appreciated.
>>>>
>>>
>>> I don't see the need for slirp stats.  A production deployment is not
>>> going to use slirp, and a developer deployment won't need slirp stats.
>>>
>>
>> OK, drop++.
>>
>> BTW, there is one definitely useful part of "info slirp": the connection
>> listing at its end. It's basically what Alexander Graf recently
>> contributed, but more complete. I already factored this part out and
>> will submit an advanced version, likely under "info usernet" - who knows
>> what "slirp" means...
> 
> The cleanup wouldn't drop the connection listing, would it? :-)
> That's about the only thing I care about when it comes to any info
> regarding slirp.
> 

(qemu) info usernet
Protocol[State]    FD   Source Address  Port    Dest. Address  Port RecvQ SendQ
tcp[ESTABLISHED]   20        127.0.0.1 12345        10.0.2.15    22     0     0
tcp[HOST_FORWARD]  17                * 12345        10.0.2.15    22     0     0
udp[HOST_FORWARD]  19        127.0.0.1 10000        10.0.2.15 10000     0     0
udp[230 sec]       18        10.0.2.15  5353      224.0.0.251  5353     0     0

Is that OK? :)

Jan

-- 
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] [POLL] slirp statistics - enable or drop them?
  2009-06-22 14:50       ` Jan Kiszka
@ 2009-06-22 14:51         ` Alexander Graf
  0 siblings, 0 replies; 8+ messages in thread
From: Alexander Graf @ 2009-06-22 14:51 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: Avi Kivity, qemu-devel


On 22.06.2009, at 16:50, Jan Kiszka wrote:

> Alexander Graf wrote:
>>
>> On 22.06.2009, at 15:00, Jan Kiszka wrote:
>>
>>> Avi Kivity wrote:
>>>> On 06/22/2009 03:28 PM, Jan Kiszka wrote:
>>>>> I just broke (locally) the slirp statistics. You know: "info  
>>>>> slirp".
>>>>> Maybe you don't because they are off by default, and there is  
>>>>> even no
>>>>> hidden configure switch to enable them ("#define LOG_ENABLED" or
>>>>> "-DLOG_ENABLED" is required). Before fixing them again, I wonder  
>>>>> if
>>>>> there are actually use cases out there.
>>>>>
>>>>> Basically I have three options now:
>>>>>
>>>>> - drop them completely (would make my nice, 1600-lines dropping  
>>>>> slirp
>>>>>   cleanup patch even nicer...)
>>>>> - fix them and leave them disabled, maybe adding some
>>>>>   --enable-slirpstats to configure
>>>>> - fix them, but turn them on by default again so that Joe User  
>>>>> is able
>>>>>   to, well, actually look at them
>>>>>
>>>>> Feedback appreciated.
>>>>>
>>>>
>>>> I don't see the need for slirp stats.  A production deployment is  
>>>> not
>>>> going to use slirp, and a developer deployment won't need slirp  
>>>> stats.
>>>>
>>>
>>> OK, drop++.
>>>
>>> BTW, there is one definitely useful part of "info slirp": the  
>>> connection
>>> listing at its end. It's basically what Alexander Graf recently
>>> contributed, but more complete. I already factored this part out and
>>> will submit an advanced version, likely under "info usernet" - who  
>>> knows
>>> what "slirp" means...
>>
>> The cleanup wouldn't drop the connection listing, would it? :-)
>> That's about the only thing I care about when it comes to any info
>> regarding slirp.
>>
>
> (qemu) info usernet
> Protocol[State]    FD   Source Address  Port    Dest. Address  Port  
> RecvQ SendQ
> tcp[ESTABLISHED]   20        127.0.0.1 12345        10.0.2.15     
> 22     0     0
> tcp[HOST_FORWARD]  17                * 12345        10.0.2.15     
> 22     0     0
> udp[HOST_FORWARD]  19        127.0.0.1 10000        10.0.2.15  
> 10000     0     0
> udp[230 sec]       18        10.0.2.15  5353      224.0.0.251   
> 5353     0     0
>
> Is that OK? :)

Looks great :-).
Just be sure not to drop it accidently ;-)

Alex

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-06-22 14:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-22 12:28 [Qemu-devel] [POLL] slirp statistics - enable or drop them? Jan Kiszka
2009-06-22 12:36 ` Avi Kivity
2009-06-22 13:00   ` Jan Kiszka
2009-06-22 14:30     ` Alexander Graf
2009-06-22 14:50       ` Jan Kiszka
2009-06-22 14:51         ` Alexander Graf
2009-06-22 13:09 ` Anthony Liguori
2009-06-22 13:58   ` Jan Kiszka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).