yashsingh1/xdaforums huggingface dataset:
[AT&T Samsung Galaxy S II SGH-I777] tejones36:
My cellular speeds didn't increase much - but I'm in a horrible area, and I only have last night's results to compare against and they are the same. Of course, those were 2:30 am tests...

Wifi on the other hand easily doubled, consistently. From 5 to 10-13 Mbps...

I haven't even looked at the capabilities of the TCP stack on phones - but latency impact can be reduced if sliding window sizes are being used (for one tuning example). Then the high latency round trip time for the ACK packets doesn't bottleneck the bandwidth. Properly tuned, on a large data transfer, latency issues are much less impacting (and with a large enough data transfer completely negligible). Then it all comes down to bandwidth and congestion.

http://en.wikipedia.org/wiki/Sliding_window_protocol

Of course, for many small TCP sessions or interactive sessions where the TCP window sizes can't ramp up, the latency will be very apparent. But for a bandwidth speed test the increasing window before packets have to be ACK'd ramps up the speeds until congestion comes into play. I might try to look at this on the phone this weekend - but I've successfully tuned servers communicating over high bandwidth/high latency (i.e. satellite) to be much more efficient, but that's obviously different than your fix. I wonder if there's still more tweaking possible higher up the stack.

I'm also starting to wonder if the phones are intentionally "untweaked" as a way to bring the bandwidth congestion down by effectively capping individual speeds. This doesn't fall into the "conspiracy theory" sort of thing, just AT&T being practical.

I'm amazed though at how much your tweak has improved performance! Excellent work, and many thanks.
[AT&T Samsung Galaxy S II SGH-I777] daraj:
any noticeable speed in real time browsing? Im here at work and haven't had the chance to install it. Any ttl( Time-To-Live) problems when loading sites?
[AT&T Samsung Galaxy S II SGH-I777] Emil9727:
So kinda interesting for me. I live in a HSPA+ area. My cellular has stayed the same, about 6-7 however my wifi has gone from 17 to 32.

I am still concerned as I get 10-14 on my infuse. I don't know what Sammy/att did lol

It is strange though because my internet "feels" faster.
[AT&T Samsung Galaxy S II SGH-I777] SeanHacker:
all this good thats happening is because entropy is a kernel wizard lol and puts a lot of quality time into his kernels. thanks for the great work bro. on a side note... your PoF rom is turning out to be a little bit more of a challenge then i thought. i have switched out some of the files that i thought would rid the mic audio issues and has failed horribly. bootloops. now im thinking i can try and figure out what DG did to his perception rom and just apply it to yours. gonna look into it this afternoon. thinking that should work problem.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
I think DG just forced noise reduction to "on" or "off" (basically forcing the workaround I mention) - but there is probably a better way to do this!

I wish I could find the commit where CM7 fixed their mic issuess, that would tell me where to look.

Surprised anyone had improvements in upload speed - I don't think I tweaked any of my send buffer sizes (need to check this).

Also, for those that want to experiment, it looks like you can override the buffersize settings in build.prop

http://xdaforums.com/showthread.php?t=1210341

There are some low-level TCP stack tweaks possible, but I'm not doing these until I've read up more on them. Part of the issue is we already have some sort of wacky tweak... I may post a test build that disables the AT&T "tweak" to see what happens.

Also - can anyone confirm that tethering is working on stock-based ROMs (Unnamed, Cognition, h8s2, rooted stock)? If so, I'll build and post an experimental-tree release for those that want it. (It's dropped on my priorities list now that it has been proven to hide and not fix high AOS usage reporting.)

As to the sliding window stuff - the TCP buffersize settings are the min/default/max values for the sliding window. Linux autotunes buffer sizes within those limits as necessary. (That way it doesn't waste 700k on a socket that doesn't need it.)

The thing is that other than receive window, for download speeds it's usually the other end that matters the most. TCP puts most of the rate/congestion control in the sender, not the receiver.
[AT&T Samsung Galaxy S II SGH-I777] glitchsys:
Check it out. Phone on the left is a Stock ATT Samsung Galaxy S II, identical to mine except it hasn't been modified in any ways (not rooted or anything). On the right is my ATT SGS2 running UnNamed 1.1.0 with your kernel from 11/3/11. Ran the speedtest about 5-10 seconds apart so that they both wouldn't be hitting the bandwidth at the same time. This is one of 5 tests I did and in general your new kernel was faster 4 out of 5 times. The upload was always all over the place, in the previous tests they were generally consistent with mine generally coming out slightly on top.

Also, I tested this new kernel using Perceptions ROM, it's based on a International Galaxy S II ROM. It looks like the WiFi Tethering issue is indeed fixed. When are you planning on releasing the 11/03/11 Experimental kernel? I've been using experimental for sometime now, it's quite stable and since you put in that patch for the Conservative Governor, I've been staying on conservative instead of ondemand.
[AT&T Samsung Galaxy S II SGH-I777] roadrash7:
Thanks. Still slow though...whatever
[AT&T Samsung Galaxy S II SGH-I777] ferrocene:
With all due respect, something is amiss here. If I plug in USB power to the adapter and then the adapter to the phone, I have wifi and it charges the phone. The power isn't disrupting anything.

The second I plug in the HDMI cord into the adapter, wifi/cell shuts off, but phone is still being charged.

When I unplug the HDMI adapter, a WiFi AP scan is initiated 1/10 of a second before it logs the HDMI disconnect.

This really doesn't belong in your thread, but I just thought I'd agree with LGSilva. Something weird is going on.

BTW, I just got my 2nd adapter in the mail today and it does the same thing.
[AT&T Samsung Galaxy S II SGH-I777] tejones36:
There are some interesting properties in init.rc, it looks like there are defaults for each network type :

[EDIT] Whoops, you already pointed these out in your link to the build.prop, I hadn't read it yet. It looks like they are tweaked at boot then as well. I messed with these a bit, but on WIFI I cap my home network speed with your changes, and my AT&T speed just suck no matter what. :-) [/EDIT]

setprop net.tcp.buffersize.default 4096,87380,704512,4096,16384,110208
setprop net.tcp.buffersize.wifi 4095,87380,563200,4096,16384,110208
setprop net.tcp.buffersize.umts 4094,87380,563200,4096,16384,110208
setprop net.tcp.buffersize.edge 4093,26280,35040,4096,16384,35040
setprop net.tcp.buffersize.gprs 4092,8760,11680,4096,8760,11680
setprop net.tcp.buffersize.lte 4094,87380,1220608,4096,16384,1220608
setprop net.tcp.buffersize.evdo_b 4094,87380,262144,4096,16384,262144
setprop net.tcp.buffersize.hspa 4092,87380,704512,4096,16384,110208
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
It's either some weird side effect of TetheringManager2.apk, or it's a flaw in the Monoprice MHL adapter. gtg465x and I are unable to reproduce your problems, these are the two things I know:

1) We're running ROMs that have TetheringManager2 removed

2) We're both former Infuse owners, and as a result have an official Samsung-branded MHL adapter

Yup - in fact, those are the EXACT values that changed in 11/3.

https://github.com/Entropy512/initramfs_sgh-i777/commit/da23b940cf5d09428e61ab9b041314a18bdfe5a6

The link to the info on overridding with build.prop is for those that want to experiment with different values.

As to 11/3 Experimental - once someone confirms that 11/3 did not break wifi tethering on normal I777 ROMs, I'll build 11/3 experimental and upload it.
[AT&T Samsung Galaxy S II SGH-I777] tboooe:
My speed results *may* have improved

I finally got around to testing Entropy's latest kernel. On cellular, I did not see any difference. Downloads before and after ranged from 2-3 Mbps and uploads ranged from .5 to .98 Mbps. On wifi with the latest kernel I am downloading consistently above 11Mbps while before the update I was usually around 10.8Mbps. I think Entropy's kernel improved things here but its tough to tell with the fluctuations in wifi. Upload speeds did not change (1.4 Mbps).

So unfortunately, I am not able to get the same speed improvements as others on this site.

I am in Orange County CA, using the web version of Speedtest (www.speakeasy.net/speedtest).
[AT&T Samsung Galaxy S II SGH-I777] Romee74:
I can't tether running 1103 but I also can't tether going back to 1020 either. I don't use tethering often so I'm not sure if it ever worked on unnamed. Just flashed it yesterday.
[AT&T Samsung Galaxy S II SGH-I777] sstarre:
For a tether app, you could try this..it only requires root and is not dependent on the rom...

http://db.tt/you5uwUC

It works well to tether my Tab 10.1. wifi to my SGS2
[AT&T Samsung Galaxy S II SGH-I777] Peaster111:
I can say I'm not having any issues with wifi. I'm running paulyhoffman's deodexed stock (well it was) UCKH7.

Btw... Nice kernel
[AT&T Samsung Galaxy S II SGH-I777] SeanHacker:
its not wifi that he is wondering that breaks. its wifi tethering bro. i havent run anything other then perception and with this kernel you made it further bro. i can at least check the box, have it activate (without error now) but when im connected with my tab or comp it still cant seem to actually connect to the websites or anything.
[AT&T Samsung Galaxy S II SGH-I777] Peaster111:
Indeed I've only checked half the box...
[AT&T Samsung Galaxy S II SGH-I777] FunkeeC:
wifi tethering working fine here w/ 1103 and unnamed 1.10
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Odd. One thing I've noticed is that on SensatioN, it seems to keep on forgetting the wifi tethering settings - And I remember in the past, I've had people claim that for whatever reason, using the default autogenerated password breaks.
[AT&T Samsung Galaxy S II SGH-I777] m0biusace:
native wifi tethering is still "broken" for me. computer connects, but either never gains an internet connection or drops it after a few seconds.

native wifi tethering with an infuse after swapping SIMs works just fine.

Edit: But holy ****. I just got:

7087/1125

6310/1123

6317/1103

up/down kbps via speedtest. Before I was doing 5000kbps down max.
[AT&T Samsung Galaxy S II SGH-I777] hlb3:
I didn't really notice any difference in data speed, still getting 3.5 Mbps on mobile and 20 Mbps on wifi.
[AT&T Samsung Galaxy S II SGH-I777] cabagekiller:
Does this kernel support the tegrak App? And if not can I build the kernel so it does using his source? Thanks for the answers.
[AT&T Samsung Galaxy S II SGH-I777] craigbailey1986:
Hey wondering is it possible to force noise reduction off so that I don't have to change it with each call?

Thanks for any help in advance!
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Tegrak violates the GPL and does not provide source for his kernel module.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
I have seen a few people claim that they had issues with the default autogenerated tethering passwords. I use a custom AP name (actually, AndroidAPnnnn where nnnn is the last 4 digits of my phone number - this was the Infuse Froyo default and I've kept this for compatibility since then) and my own WPA2 passphrase.

I have noticed on SensatioN that tethering configuration doesn't seem to "stick" - may be that the config file is somewhere else, similar to UCKI3/I4/J2/J4 wifi issues on Infuse with custom kernels. I'll probably need to identify the file next time I flash back to rooted debloated self-modded stock.

You won't see a difference if your service provider is the bottleneck and you were hitting speed caps without the buffer changes. That's part of why I said it "might" help some people - I was able to hit my mobile and wifi caps easily beforehand. I live in the boonies, I'm lucky to see 3 Mbps mobile and my cable modem is capped to 10 Mbps with "turbo boost" to 15. Meaning if I spend too much time at 15, I get throttled.

Possible yes - but I don't know how. DG did this in Perception. I'm hoping to find a way to simply fix the audio routing so you can have either.
[AT&T Samsung Galaxy S II SGH-I777] m0biusace:
I have always used a different SSID and password than stock.
[AT&T Samsung Galaxy S II SGH-I777] Peaster111:
Update... I checked wifi tethering... NoGo. It connects just fine, but it shows "Limited availability". Sent packets from the phone appear to be transferring, but Zero packets on the receive side. I'm using my own SSID and password.

Recap of my setup... I'm using paulyhoffman's rom with the 11/3 kernel update. TetheringManager2 has been deleted (a lot of other crap too :) ).

The 11/3 kernel is working great for me otherwise.

My data speeds are up similar to other reports. I don't use wifi tethering myself.
[AT&T Samsung Galaxy S II SGH-I777] cabagekiller:
Thanks for the quick reply entropy. I wish I knee that before I bought his App now. Oh well I guess.
[AT&T Samsung Galaxy S II SGH-I777] joeybear23:
for some reason the 11/03 update kills my ping times and upload speed. My download speed drops a little, but not a ton.

Here are some numbers (average over 5 tests)

Kernel_______Ping______Download_____Upload

10/20_______111_______2.89_________1.19

11/03_______287_______2.67_________0.16

I am running UnNamed 1.10, if that matters.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Makes no sense - I didn't touch the send buffer sizes at all, only the TCP receive buffer sizes. I'm surprised an app would even measure ping using TCP anyway.

Probably just time fluctuation... I've seen the Speetest app flake out many times, providing awful results randomly.
[AT&T Samsung Galaxy S II SGH-I777] highaltitude:
How do you know if this kernel installed? Mine says 2.6.35.7 but nothing else?
[AT&T Samsung Galaxy S II SGH-I777] mjgspr95:
I'm in north FL my speedteest app has weird delay, but started before my kernel upgrade to 11/3. The other FCC app has same delay. About a minute...

rom: i777 2.3.5 kj2 (leak)

Mod: 14 toggle w/settings

Boot: No triangle

Kernel: Entropy512 D10/20

Onepointsixingit
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
That's typical for settings->About Phone.

Use CPUSpy to check the build username/host - anything from me will say adodd@quadmonkey or (rarely, if I build when on a business trip, this hasn't happened for a while) adodd@andysg51
[AT&T Samsung Galaxy S II SGH-I777] tejones36:
Skyrocket data speeds

It's not really relevant in this post, except that we were discussing data speeds. I'm one of those who drank the cool-aid and cancelled by Galaxy S II for the new Galaxy S II Skyrocket.

First, I'm not in an LTE market area, so I didn't expect a speed improvement on the network - particularly one that didn't have Entropy's buffer size tweaks. However, it seems like the radio on the Skyrocket is improved or other improvements were made. Whereas I consistently only achieved 2.4 Mbps on my old phone, I can now get around 5.5 Mbps on the new phone. Wireless speeds were improved as well.

For that reason alone I'm pretty happy with the Galaxy S II Skyrocket; I'll just be glad when some custom kernels are available!
[AT&T Samsung Galaxy S II SGH-I777] starryeyez:
Hey Entropy

I know this is the Sgs2 forum but there isnt a Sgs2 SkyRocket forum yet. Do you by any chance know when they are gonna start working on one. Are you by any chance gonna work on something for it. Really would love to ROOT this bad boy. :D

Thanks :D
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
I'm not an XDA moderator and I'm not touching the ****rocket. That phone is an utter abomination.

I bought the I777 for commonality with the I9100, not for other specifications. The project I'm about to post here would be extremely difficult if not impossible on the ****rocket - but it was easy once I had some time to set aside for it on the I777.
[AT&T Samsung Galaxy S II SGH-I777] BrokenLegGuy:
Don't sugar coat it. How do you really feel? ;)
[AT&T Samsung Galaxy S II SGH-I777] kytrauma:
^^^ lmfao well spoken.
[AT&T Samsung Galaxy S II SGH-I777] DKS1282:
Sorry for being uneducated but Im really confused. I thought this Kernel would overclock my cpu on my phone. I see no way to accomplish this after flashing my phone.

Also I was just wondering if anyone else had a huge loss in download speed? I was at about 2-3 mb now is at about 3-7kb I had high hopes after skimming all these pages.

Please PM me Entropy I doubt I'll find your response here. Thank you
[AT&T Samsung Galaxy S II SGH-I777] Simba501:
SetCPU; it's free here on XDA. And he's actually pretty responsive.
[AT&T Samsung Galaxy S II SGH-I777] shishir95:
Okay I tried over and over again but I think the latest 11/3/2011 update breaks Wifi Tethering. My laptop just refuses to connect to it. I'll try different ROMs, but For me, in Serendipity 8.1, it doesn't work.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Having a massive loss in download speed like that doesn't make any sense - try flashing back and forth between 10/20 and 11/03.

shishir95: Did it ever work for you on older kernels?
[AT&T Samsung Galaxy S II SGH-I777] shishir95:
Yes. I've used it a couple of times on older kernels. I just can't pinpoint the cause and other users have reported it working so I doubt it's your kernel O_o I'll flash between kernels again till I find out what the problem is.

I'll confirm that download speeds on WiFi have increased noticeably; not double what I used to get, but think 9.5Mbps instead of 8.7Mbps. Whatever you did, worked.
[AT&T Samsung Galaxy S II SGH-I777] DKS1282:
Yeah I tried the 1020exp and now flashing the 1020. Thanks for the quick reply! Each new kernel I try it gets slower... Now I cant even break 3kb. :( Maybe its just my home, but my fiances Ip4 is getting 1.5mb sitting right next to my Galaxy s 2.

I'll keep trying. Thank you again.

PS. Testing wifi as well I drop from 9mb to 5 mb constant.
[AT&T Samsung Galaxy S II SGH-I777] Stixho:
Simple question alert!!!!!!

Which of the 7 .zip files is the correct file to download for the Entropy kernel?....
[AT&T Samsung Galaxy S II SGH-I777] Adelaide.:
I've developed a very sneaky random reboot problem. I noticed Thursday night my battery stats were off, showing the phone had been on battery for much less time than it actually had.

Well, today I pulled my phone out and when I turned the screen on it showed the "SetCPU has been granted superuser permissions". I've had SetCPU for a while so it wasn't a new permission. When I checked the battery screen it showed it being off the charger for 2 minutes. I've never seen the phone reboot, but that has to be what is happening. I found the instructions to pull the kmsg file, but when I tried to pull it up in the emulator it said "not found".

The command I found was cat/proc_kmsg> /sdcard/last_kmsg.txt

I'm running the latest kernel and Unnamed. I'm also at work, so no computer to use for anything.
[AT&T Samsung Galaxy S II SGH-I777] Adelaide.:
11032011

The names are the date it was released, and it was released on 11/03/2011.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
/proc/last_kmsg, not /proc_kmsg

Also, last_kmsg won't exist if the phone was powered off for a while.

"off charger" time can be really flaky.

CPUSpy can be useful... Reset your timers at boot, then if this happens, check if the timers got reset by a reboot.
[AT&T Samsung Galaxy S II SGH-I777] Adelaide.:
Thanks I will try it again. I forgot to mention that, my CPUspy timers had all been reset also.

EDIT - Still getting a not found error. For what it is worth I put in the proc/wakelocks command just to see if it would work and I got a read only file error. I made sure superuser was enabled before I tried either command.
[AT&T Samsung Galaxy S II SGH-I777] Stixho:
Thanks for the reply. So I can pick whichever.zip file right? And it will have the kernel?
[AT&T Samsung Galaxy S II SGH-I777] Simba501:
Correct.

....
[AT&T Samsung Galaxy S II SGH-I777] vladm7:
I'm guessing that was just a typo, but just in case, there should be a space between cat command and whatever follows it.

so: cat /proc/last_kmsg
[AT&T Samsung Galaxy S II SGH-I777] Adelaide.:
Bloody hell. *sigh* I probably should have paid attention in that computer class I took in college. I remember just enough to cause problems! lol

Edit - got it to work.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Yeah, and of course, the later the date, the newer it is.
[AT&T Samsung Galaxy S II SGH-I777] joeybear23:
I can't figure it out either, but this is now the 3rd day in a row that I have tried this, with almost identical results. For some reason on my phone and in both the Dallas and Sacramento areas I get higher ping times, slightly slower download speeds and significantly slower upload speeds on the new kernel.

No problem, though, because going back to 10/20 works every time.

Are there any logs or files you would like me to send you?
[AT&T Samsung Galaxy S II SGH-I777] vladm7:
I just installed latest kernel + new modem from 2.3.6 and ran tests few times. I can tell that it fluctuates +/- 25% from one attempt to another. If you run 10 tests in a row on older kernel and then re-run another 10 as quickly as possible on the new one, how the averages compare?

As far as ping goes - I don't have any clue on how IP stack is implemented in our kernel, neither how they measure latency in speedtest, but in some circumstances increased MTU may result in slower response time. Also, that should not be the case if it's ICMP-based measurement.
[AT&T Samsung Galaxy S II SGH-I777] joeybear23:
I did it with 6 back-to-back tests on each kernel, all done in under 15 minutes from start to finish. the only major fluctuations were at kernel change.

Again, this may just be my phone...
[AT&T Samsung Galaxy S II SGH-I777] vladm7:
so % or mbps- wise speaking, what's the difference?
[AT&T Samsung Galaxy S II SGH-I777] joeybear23:
http://xdaforums.com/showpost.php?p=19081306&postcount=443
[AT&T Samsung Galaxy S II SGH-I777] vladm7:
if your avatar is of any hints (and you are from chicago area as well as i'm), then your upload speed is definitely out of whack, compared to mine. i'm getting download ranged 4..10mbps (depends of time and location - home/office) and upload ~1mbps pretty consistent.
[AT&T Samsung Galaxy S II SGH-I777] Adelaide.:
Another random reboot. This time I caught the phone at the reboot animation.
[AT&T Samsung Galaxy S II SGH-I777] mgfjd:
what are you conservative governor settings?

Thank you.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Why don't you try learning what the governor settings do (Google) and trying out different ones to see if you like them? There's no "one size fits all" here, there's a reason they're customizable.

"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime."
[AT&T Samsung Galaxy S II SGH-I777] mgfjd:
I have read rave reviews about your conservative governor and I was curios what kind of tweaked settings you are running the CPU

I am looking info about the upper and down threshold, sampling, and CPU scale freq. I set up mine like this:

up: 75

down: 30

sampling: 150000

CPU scale: 15%

Thanks
[AT&T Samsung Galaxy S II SGH-I777] joeybear23:
Nah, I'm a Bears fan, but I live in North Texas and work in Northern California...

These results are from Texas, but I get similar results in California.