[Vega Android Development] scanno:
Just tested with logcat on. Cannot see really strange things while switching Wifi Off/On. The only thing i can see is that all "daemons" that are running get a state changed notification and try to do stuff. When Wifi is turned on they offcourse try to update their data (weather widget, K9, Plume, etc) or reconnect to servers (dropbox). But that should not use much cpu time. I get the feeling like bad IRQ handling or something (back in the old days when multitasking and using a modem without a 16550 UART).

When booting i see a lot of unknown permissions (perhaps i should run a fix permissions) but that is not the cause of lag i think.

UPDATE:

Playing a video i see lag in playback when there is network activity. Example:

W/ProcessStats( 1029): Skipping unknown process pid 5504
W/ProcessStats( 1029): Skipping unknown process pid 5505
D/dalvikvm( 1833): GC_CONCURRENT freed 393K, 53% free 2886K/6087K, external 759K/1271K, paused 2ms+2ms
D/WifiService( 1029): acquireWifiLockLocked: WifiLock{NetworkLocationProvider type=2 binder=android.os.BinderProxy@4089c7e8}
D/dalvikvm( 1833): GC_CONCURRENT freed 390K, 53% free 2886K/6087K, external 759K/1271K, paused 2ms+2ms
D/WifiService( 1029): releaseWifiLockLocked: WifiLock{NetworkLocationProvider type=2 binder=android.os.BinderProxy@4089c7e8}
I/System.out( 1877): [INFO:1252206]: LogSource: Running flush
I/System.out( 1877): [INFO:1252207]: LogSource: Sending payload [bytes=323]
I/System.out( 1877): [INFO:1254762]: LogSource: Response [http=200,length=47]
I/System.out( 1877): [INFO:1254762]: LogSource: Read id 11, status code 200
W/LocationMasfClient( 1877): getNetworkLocation(): GLS does not have location
D/dalvikvm( 3499): GC_CONCURRENT freed 277K, 52% free 2846K/5831K, external 2070K/2231K, paused 2ms+2ms
D/dalvikvm( 1833): GC_CONCURRENT freed 390K, 53% free 2886K/6087K, external 759K/1271K, paused 2ms+2ms
I

and

W/ProcessStats( 1029): Skipping unknown process pid 4287
W/ProcessStats( 1029): Skipping unknown process pid 4288
D/dalvikvm( 2996): GC_EXPLICIT freed 61K, 54% free 2549K/5447K, external 0K/0K, paused 19ms
D/ForecastProvider( 2120): query() with uri=content://com.androidapps.widget.weather2/appwidgets/4
D/dalvikvm( 2120): GC_EXTERNAL_ALLOC freed 183K, 56% free 2676K/5959K, external 685K/816K, paused 27ms
D/ForecastProvider( 2120): query() with uri=content://com.androidapps.widget.weather2/appwidgets/4
D/ForecastProvider( 2120): query() with uri=content://com.androidapps.widget.weather2/forecasts/4
D/dalvikvm( 1029): GC_EXTERNAL_ALLOC freed 629K, 42% free 5765K/9927K, external 3739K/3821K, paused 63ms
I/CmStatusBarView( 1833): isStillActive returns false - CallerProcess: com.clov4r.android.nil CurrentProcess: com.androidapps.widget.weather2 CallerActivity:ComponentInfo{com.clov4r.android.nil/com.clov4r.android.nil.CMPlayer} CurrentActivity: null
D/dalvikvm( 1833): GC_CONCURRENT freed 399K, 53% free 2886K/6087K, external 759K/1271K, paused 1ms+3ms
D/

Also when Plume is checking for new tweets, lag is happening.

And a lot of times i see this in logcat around the time it lags:

D/dalvikvm( 1833): GC_CONCURRENT freed 385K, 53% free 2906K/6087K, external 763K/1271K, paused 2ms+2ms
D/dalvikvm( 1833): GC_CONCURRENT freed 390K, 53% free 2905K/6087K, external 763K/1271K, paused 1ms+3ms
I/CmStatusBarView( 1833): isStillActive returns false - CallerProcess: com.clov4r.android.nil CurrentProcess: net.jaqpot.netcounter CallerActivity:ComponentInfo{com.clov4r.android.nil/com.clov4r.android.nil.CMPlayer} CurrentActivity: null
D/WifiService( 1029): ACTION_BATTERY_CHANGED pluggedType: 0

EDIT: DMESG output around lagtime(s)

<3>[ 3181.651943] NvOdmBatteryGetBatteryData pre percent 19
<3>[ 3182.315936] NvOdmBatteryGetBatteryData pre percent 18
<3>[ 3182.383485] Restry NvOdmBatteryGetBatteryData
<3>[ 3182.387951] NvOdmBatteryGetBatteryData pre percent 18
<4>[ 3188.425961] AR6000 Neighbor Report Event
<4>[ 3188.429885] bssid 7c:61:93:12:1e:dd
<3>[ 3211.651621] NvOdmBatteryGetBatteryData pre percent 18
<3>[ 3212.315393] NvOdmBatteryGetBatteryData pre percent 18
<3>[ 3212.380956] NvOdmBatteryGetBatteryData pre percent 18
<3>[ 3241.646200] NvOdmBatteryGetBatteryData pre percent 18
<3>[ 3241.722325] NvOdmBatteryGetBatteryData pre percent 18
<3>[ 3241.785383] NvOdmBatteryGetBatteryData pre percent 18
<4>[ 3251.302029] AR6000 Neighbor Report Event
<4>[ 3251.305978] bssid 7c:61:93:12:1e:dd
<3>[ 3271.651485] NvOdmBatteryGetBatteryData pre percent 18
<3>[ 3272.314446] NvOdmBatteryGetBatteryData pre percent 18
<3>[ 3272.378952] NvOdmBatteryGetBatteryData pre percent 18
<3>[ 3301.654124] Restry NvOdmBatteryGetBatteryData
<3>[ 3301.658565] NvOdmBatteryGetBatteryData pre percent 18
<3>[ 3302.324062] NvOdmBatteryGetBatteryData pre percent 18
<3>[ 3302.389133] NvOdmBatteryGetBatteryData pre percent 18
<4>[ 3314.178178] AR6000 Neighbor Report Event
<4>[ 3314.182115] bssid 7c:61:93:12:1e:dd

EDIT:

I am not sure..... if it is networking. The line I/CmStatusBarView( 1833) is also connected with lag (i see that most of the time when it lags). Or perhaps it is a combo