yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] robertobsc:
Hi pikachu!

I don't know if it's included in thunderbolt, but if don't, what do you think of including journal_data_writeback in the mount?

Enviado de meu GT-I9100 usando o Tapatalk 2
[Android Software/Hacking General [Developers Only]] :
pikachu01. I didn't like everything on screenstate_scaling, so I've modded it to only scale frequencies.

defaults: screen on: 1200-200 screen off: 500-200. [i9100, change it if your device = different]

The result was a very small file and working flawless. Don't know if it can be useful to you or anyone else...

ps: it isn't a cwm installer. Extract the file and copy to your init.d folder with rwxrwxrwx permissions.

I think it's a good SetCPU alternative :P It will only change the freqs, won't change governors, governors settings, etc.
[Android Software/Hacking General [Developers Only]] pikachu01:
journal_data_writeback is a tune2fs command. Not a mount option :) tune2fs requires the partition to be unmounted before modifying it, hence it can only be performed at recovery.

Also, by default journal_data_writeback is ordered for data. You can tune it to be writeback but it is not recommended as it greatly increases the chance of data corruption after an SOD/hang.

VM scaling is actually good to preserve battery life (lesser data activities when screen is off). However thanks anyways :)

It is noted that limiting frequencies when screen is off can be counterproductive in some ways that some activities are slower to complete leading to longer time to go to suspend.
[Android Software/Hacking General [Developers Only]] .:Crack:.:
Eventhough you said BFQV4 won't be that good, it works very good for me! might want to have a deeper look?
[Android Software/Hacking General [Developers Only]] pikachu01:
In terms of newer hardware, it depends on how good the hardware is in eliminating the overhead caused by BFQ in the I/O.

If it works good for you, why don't you try compare it with how SIO/Deadline works?

I.e.:

If I/O transactions are more expensive than processor overhead in terms of 10x, more processing should be done to the scheduler.

If I/O transactions are less expensive than processor overhead in terms of 10x, less processing, or more straightforward processing should be done to the scheduler.

The former is always true for spindle based hard disks and apply lesser towards disks that employ flash like SSDs.

With newer flash drives and processing power, there may come a time that overhead is seen less.

This is true with how I observe SIO vs CFQ (for example in Galaxy S and Galaxy S2). A world of difference in Galaxy S and very little difference in Galaxy S2, though SIO does edge out.

Try doing some real life tests (no, not benchmarks. The Android benchmarks can't do justice to how scheduling reacts) to see how both compare and realize that the difference is small. Don't think there's such a thing as a benchmark that tries to read/write to different file sectors and calculate the lowest mean time and at the same time tries to interrupt it with GUI based tests. This benchmark would essentially test how good the interface can withstand heavy I/O transactions. In the best case, both GUI and I/O should be unaffected with each other and both complete in time that doesn't affect user experience.
[Android Software/Hacking General [Developers Only]] .:Crack:.:
what could the real life tests be? using a i9000 btw (sig).
[Android Software/Hacking General [Developers Only]] pikachu01:
Scrolling a long list, listening to high-def music while doing some heavy processing (converting music?) etc.
[Android Software/Hacking General [Developers Only]] robertobsc:
Hi pikachu,

That's what I thought in beginning, but actually, data writeback doesn't give data corruption. In a case of sod it can only not save some informations data was in journal in moment of sod.

Sources:

"I set the mode to journal_data_writeback. This basically means that data may be written to the disk before the journal. The data consistency guarantees are the same as the ext3 file system. The downside is that if your system crashes before the journal gets written then you may loose new data -- the old data may magically reappear. This is still better than ext2 because file system integrity is maintained, so the file system is at least consistent even after an unclean shutdown. In other words, you may loose data, but you won't have corrupt data. "

Disk Performance Tuning - Noah.org

"Next is data=writeback. This means that metadata for files can be written lazily after the file is written. This will not cause file system corruption, but it may cause the most recent changes to be lost in the event of a crash (so you may jump back into the past a bit)."

http://blog.smartlogicsolutions.com...ions-to-improve-ext4-file-system-performance/

And according to this last source we can add the "data=writeback" option in mount.

Enviado de meu GT-I9100 usando o Tapatalk 2
[Android Software/Hacking General [Developers Only]] pikachu01:
You can add data=writeback but it won't change anything. The mount will still show up as ordered. I tried this before ;)

Also, missing data might amount to corruption as some parts of the data might already be written resulting in a data integrity error, that causes corruption. Data corruption is can also be surmised as lost data as well.
[Android Software/Hacking General [Developers Only]] alkhafaf:
Hello pika.. y is my free ram under 100mb and I already installed the 100 mb lmk?

I also checked the build.prop and the lmk values are already added.

View attachment 1319801

Sent from tapatalk using sgs i9000

[ROM][GB][JW8] MesoROM v2.0 8/27/2012 Ultra Light-Smooth-Beauty

Google+
[Android Software/Hacking General [Developers Only]] pikachu01:
LMK has different thresholds that will only release the memory when it hits it.

You can read up about it here:

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

Hence a 100MB LMK only means the EMPTY_APP_MEM at 100MB. Means, it'll clear the EMPTY_APP_MEM when it hits lower than 100MB. If all the apps in EMPTY_APP region is cleared, and the memory is still low, it'll go to the next one (HIDDEN_APP) and etc etc.
[Android Software/Hacking General [Developers Only]] robertobsc:
Oh yes, in case of data integrated that can happen... that's a point. Would be necessary to know what is the interval of writeback data from journal to hd to know how much is risky...

Enviado de meu GT-I9100 usando o Tapatalk 2
[Android Software/Hacking General [Developers Only]] .:Crack:.:
Pika, whats your opinion on "iBFQ"? The kernel dev claims its awesome...

see kernel (gnex) here:

http://xdaforums.com/showthread.php?t=1749466&highlight=ibfq

source here: https://github.com/RcrdBrt/INK-gnex/commit/f19e3b2682f82d640fe0f4ac332033d0724b3ee5

old kernel nexus s here http://xdaforums.com/showthread.php?t=1583086
[Android Software/Hacking General [Developers Only]] muktheo:
hello pika..i think the sqlite_optime script doesnt work on JB..bcz when I run that script,it give me many notif "couldnt locate file"..
[Android Software/Hacking General [Developers Only]] pikachu01:
I don't get what you're talking about. Is there a typo in your sentence?

Will look at it in a bit.

Did you install the main CWM with the sqlite3 binary?
[Android Software/Hacking General [Developers Only]] PIRATA!:
Hi to everybody!

I have upgraded to DarkyROM v11.0 Black Edition... is Thunderbolt still compatible with that rom?? Which version should I install??

In case yes...any particular things to do afer flashing it (and its modules)??? I used to flash them on old DarkyROM and anything else...

Thank you all.
[Android Software/Hacking General [Developers Only]] pikachu01:
If it's JB or ICS, the main CWM, screenstate scaling and the LMK should be compatible. If it's AOSP/AOKP/CM based the screenstate_scaling is not compatible for it.
[Android Software/Hacking General [Developers Only]] PIRATA!:
Ok...so only base package, and then ONLY the screenscaling and my favourite LMK file??

Ps: some preferred LMK?? What sould be the best? Any suggestions?
[Android Software/Hacking General [Developers Only]] pikachu01:
Try the 100MB LMK. Since it's ICS/JB for I9000 I assume that it's AOSP based hence you can't use screenstate_scaling.
[Android Software/Hacking General [Developers Only]] YYC_ARYIP:
Question - can I have ThunderBolt! script and v6 supercharger script installed and running at the same time?

I am sorry if the question has been asked for many times:confused:
[Android Software/Hacking General [Developers Only]] pikachu01:
Only the ThunderBolt!'s addon or Supercharger can exist, not both. All others like the main CWM and all other addons can be installed without problems with Supercharger.
[Android Software/Hacking General [Developers Only]] PIRATA!:
Oh...thank you you told me!

So only base package and LMK 100?? Mmmm...why 100?? Curious to know why....
[Android Software/Hacking General [Developers Only]] zerkai:
I know the answer but for some reason this just sounds a little confusing. Lol

ThunderBolt!'s LMK cannot be used with Supercharger.
[Android Software/Hacking General [Developers Only]] robertobsc:
I was trying to tell that giving the fact that the journal_data_writeback option could cause data corruption only in data integrity error case; and giving the fact that must be an interval in save to journal moment to save to hd moment in writeback method;

I was wondering what was that interval of storing journal data to hd to know how much would be risky to adopt that method.

Enviado de meu GT-I9100 usando o Tapatalk 2
[Android Software/Hacking General [Developers Only]] pikachu01:
The default is 15 seconds. Even if you put it to 5 seconds, any data writeback that happens not within the 5 seconds will give you a data integrity error, corrupting a whole chunk of data.
[Android Software/Hacking General [Developers Only]] robertobsc:
Ok, thx for the info.

I'll add it to /cache filesystem

I'm thinking in add to /system

I won't add to /data

Enviado de meu GT-I9100 usando o Tapatalk 2
[Android Software/Hacking General [Developers Only]] pikachu01:
I found that a lot of lags are taken care of after using 100MB LMK. You still can use 60 or even 80MB LMK. Try to see which is better for you :)

You still need to do it in recovery. Can't do it after the system booted up.

No use adding it to /system. There's nothing ever going to be written to it in normal operations.
[Android Software/Hacking General [Developers Only]] robertobsc:
Pikatchu, now I got a doubt

I will do it at /cache. I got it, must be done in recovery. But I saw two kinds of partitions to /cache. One in recovery /etc/recovery.fstab

# mount point fstype device device2

/cache ext4 /dev/block/mmcblk0p7

And other in mount command

$ mount | grep cache

/res/dev/cache on /cache

When I apply tune2fs I must do with the recovery.fstab partition, right?

But it will be applied to /res/rev/cache?

Thx!

Enviado de meu GT-I9100 usando o Tapatalk 2
[Android Software/Hacking General [Developers Only]] pikachu01:
Umm /res/rev/cache doesn't have anything to do with /cache as far as I'm concerned.

The /dev/block/* is the actual software based mount point where it will be mounted to /cache later.
[Android Software/Hacking General [Developers Only]] Windows X:
Can I include your script in my Xperia P ROM? No one works on Xperia P anymore and no customized ROM for ICS right now so I think I'll give it a shot.

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

I also'd like to ask if you'll allow me to release derived works at some points in future.
[Android Software/Hacking General [Developers Only]] pikachu01:
Yeah you can do that :)

As long as there are proper credits given.

Yes, you can release derivative works, however please point the changes done. Let me know too by posting a link to the derivative. Appreciate it :)
[Android Software/Hacking General [Developers Only]] Windows X:
Thank you. Not much for optimizations though. Just some work adjustments like reducing delay, add sleep, etc. and some personalized values.
[Android Software/Hacking General [Developers Only]] PIRATA!:
Ok...and for instaling I need only to go into recovery and install the following two .zip files??

ThunderBolt-CWM_v2.7.7.zip

ThunderBolt-CWM_100MB_LMK_Others_addon_v2.0.zip

ThunderBolt-CWM_screenstate_scaling_addon_v2.0.2.zip <<is it compatible with DarkyROM v11.0 BlackEdition?? someone told me NO!! you confirm??

About the the restore packages...I am on no stock rom..I am on DarkyROM...so I was thinking about how could I delete the ThunderBolt files....

Which are the differences between the two files down here??

Stock_i9000_Restore_CWM_v1.2.0.zip

Stock_i9000_Restore_CWM_JW4-JW5_v1.20.zip

I have looked inside and they just seam the same...same files and updater-binary and updater-script ....correct??

If I would like to create my personal restore pack, could I just extract from my rom all the files inside your restore pack and just replace them? In this way I will restore my Darky files...right??

Of course I have done a copy of my init.d folder and I will replace it once the restore package is flashed...

In this way I shoud have back al the files as I have now without having to reflash all the rom agan...

Is this correct??
[Android Software/Hacking General [Developers Only]] robertobsc:
Hi pikachu,

I have an experimental question :

I was studying the smp_affinity feature in balancing the cpu interruption.

I checked in my device, and must of them have their values equal 3 but not all of them. Do you know this feature? and what do you think of changing it all to 3?

Cheers

Enviado de meu GT-I9100 usando o Tapatalk 2
[Android Software/Hacking General [Developers Only]] pikachu01:
Let me know if you need any help :)

Yes, you can replace the files from DarkyROM. I would need to know if DarkyROM is based on Samsung ROM or not. If it's not, then screenstate_scaling won't work.

Which Semaphore kernel are you using? Is it the Samsung one? Provide a link to the kernel and I'll let you know whether screenstate_scaling is compatible or not.

Changing it all to 3 would be counter-productive as some time-critical interrupts can't be serviced accordingly. :/

You can read more here:

https://cs.uwaterloo.ca/~brecht/servers/apic/SMP-affinity.txt
[Android Software/Hacking General [Developers Only]] PIRATA!:
Here is the link of the Semaphore kernel with which is provided the rom..and the one that I am still using now:

http://www.semaphore.gr/kernels/Semaphore_ICS_1.2.5s.tar

(ZIP version: http://www.semaphore.gr/kernels/Semaphore_ICS_1.2.5s.zip)

Thank you.
[Android Software/Hacking General [Developers Only]] pikachu01:
It's AOSP. No screenstate_scaling support. Only main CWM and LMK.

I forgot to mention that you need to restore the /system/build.prop from /system/build.prop.thunderbolt. That one must be manually done if you installed the LMK addon.
[Android Software/Hacking General [Developers Only]] robertobsc:
Hi pikachu,

I did a look at the link but didn't find any problem about been a bad thing to use both cpus in mask to interruption.

I did find a site talking about it, but I want to confirm that this is really bad. I have set all to 3 by yesterday afternoon. Not much difference till now.

[EDIT]: Also there are a lot of default values = 3, without tweak.

If its bad shouldn't we change it to 1?

Enviado de meu GT-I9100 usando o Tapatalk 2
[Android Software/Hacking General [Developers Only]] pikachu01:
You should read more concerning this. Some IRQ is changed to specific cores to ensure smoothness or ensure that the main core (core0) isn't interrupted by certain interrupts.

If you change it to 1, it'll only use 1 core for all interrupts which is worse. The best is to only change some important IRQs that you know would interrupt the main core continuously (resulting in lesser core throughput) which you would rather delegate to core1 to compute.
[Android Software/Hacking General [Developers Only]] Windows X:
Thank you. Here's my test version of what I use with my friends' phones. It's optimized for good phones with high memory like 1GB. I plan to remove screenstate in next release as it freezes at turning screen on sometimes.

http://www.mediafire.com/?dm4gboxhrp444cb

Still have troubles getting sqlite and gigabolt_install script to work from CWM though. Would be highly appreciated if you could fix them to work in CWM as I'm not very familiar with scripts in CWM. Some work and some strangely don't.
[Android Software/Hacking General [Developers Only]] bluehell:
how to just install something that will:

Better performance, better battery life through Linux kernel tweaks catered for Android OS and flash memory.

Better battery life and performance through usage of screenstate_scaling whereby it switches thresholds/VM tunables depending on your screen state.

Less RAM usage through zipalign.

The screenstate_scaling addon will perform VM scaling and governor tunables scaling to get the best of battery life and performance.

TCP_Buffers script in /etc/bolt_scripts to increase TCP buffers for better network performance.

thunderbolt 2.7.7 only?

100mb?

what is screenscale?

Thank you man.

I'm coming from Chamaleon for i9100
[Android Software/Hacking General [Developers Only]] pikachu01:
Accessed the file too late. It's been deleted. :/

If you're not using stock ROM (but Cyanogenmod etc) screenstate will hang at all instances.

Or did you set a frequency lower than the max frequency? If that's the case, some frequencies might not be stable if used for a length of time.

E.g. You set 500MHz as screen off and 500MHz is maximum at screen off. When there's a task, it'll hit 500MHz for 10 seconds and it'll hang the phone because the voltage is unstable if held more than a certain time span.

main CWM (ThunderBolt! 2.7.7), 100MB LMK and screenstate_scaling. Screenstate_scaling scales the VM settings as well as governor settings on screen on and screen off.
[Android Software/Hacking General [Developers Only]] geokilla:
Hey pika! There's a new tweak for I9100 that involves modifying the build prop. I'm going to guess that this tweak will render your scripts useless?

http://xdaforums.com/showthread.php?t=1883176
[Android Software/Hacking General [Developers Only]] terdek:
Can i use this script on my Lg e510 whit cm7?

Inviato dal mio LG-E510 con Tapatalk 2
[Android Software/Hacking General [Developers Only]] robertobsc:
Hi pikachu!

I turned /cache to journal_data_writeback successfully, but didn't increased performance.

I'll rollback this change. It's only necessary to put data=ordered in mount or I have to tune2fs again?

Thanks!

Enviado de meu GT-I9100 usando o Tapatalk 2
[Android Software/Hacking General [Developers Only]] pikachu01:
You mean this?

echo -e "#Additional Tweaks by Team ACID" >> /system/build.prop1
echo -e "media.a1026.nsForVoiceRec=0" >> /system/build.prop1
echo -e "htc.audio.alt.enable=1" >> /system/build.prop1
echo -e "htc.audio.hac.enable=1" >> /system/build.prop1
echo -e "htc.audio.beats.state=1" >> /system/build.prop1
echo -e "ro.semc.sols.product-code=111" >> /system/build.prop1
echo -e "ro.semc.sols.company-code=5" >> /system/build.prop1
echo -e "#AC!D Sound Tweaks by R-ikfoot" >> /system/build.prop1
echo -e "af.resampler.quality=255" >> /system/build.prop1
echo -e "af.resample=48000" >> /system/build.prop1
echo -e "htc.audio.swalt.enable=1" >> /system/build.prop1
echo -e "htc.audio.swalt.mingain=14512" >> /system/build.prop1
echo -e "htc.audio.alc.enable=1" >> /system/build.prop1
echo -e "ro.semc.xloud.supported=true" >> /system/build.prop1
echo -e "persist.service.xloud.enable=1" >> /system/build.prop1
echo -e "ro.service.swiqi.supported=true" >> /system/build.prop1
echo -e "persist.service.swiqi.enable=1" >> /system/build.prop1
echo -e "ro.semc.sound_effects_enabled=true" >> /system/build.prop1
echo -e "alsa.mixer.playback.master=Speaker" >> /system/build.prop1
echo -e "alsa.mixer.capture.master=Mic" >> /system/build.prop1
echo -e "alsa.mixer.playback.earpiece=Earpiece" >> /system/build.prop1
echo -e "alsa.mixer.capture.earpiece=Mic" >> /system/build.prop1
echo -e "alsa.mixer.playback.headset=Headset" >> /system/build.prop1
echo -e "alsa.mixer.capture.headset=Mic" >> /system/build.prop1
echo -e "alsa.mixer.playback.speaker=Speaker" >> /system/build.prop1
echo -e "alsa.mixer.capture.speaker=Mic" >> /system/build.prop1
echo -e "alsa.mixer.playback.bt.sco=BTHeadset" >> /system/build.prop1
echo -e "alsa.mixer.capture.bt.sco=BTHeadset" >> /system/build.prop1

No, they're just adding to the build.prop.

And that CWM pack only affects sound.

Does your LG e510 have NAND unlock/ CWM support/ root/ init.d support?

You have to run tune2fs again.
[Android Software/Hacking General [Developers Only]] terdek:
I have cmw, root and init.d support but i don't know if i have NAND unlock...

Inviato dal mio LG-E510 con Tapatalk 2
[Android Software/Hacking General [Developers Only]] pikachu01:
If you can write stuff to /system then you're NAND unlocked.

Only install main CWM, screenstate_scaling and LMK (each one with a reboot in between).

Make sure you have a nandroid backup as I don't know what is the compatibility for your phone.

What OS version are you using? GB? ICS? JB?
[Android Software/Hacking General [Developers Only]] terdek:
i use cm7 rom. Android version 2.3.7

EDIT: ah, i am NAND unlocked ;)

EDIT EDIT: i didn.t find the download link...and i don't understand that i should to download
[Android Software/Hacking General [Developers Only]] pikachu01:
For CM7, only the main CWM (ThunderBolt! 2.7.7) and LMK (100MB LMK preferably).
[Android Software/Hacking General [Developers Only]] terdek:
ok, i downloaded 100lmk e thunderbolt 2.7.7...but i can't install thunderbolt 2.7.7 , there is write: "error in /sdcard/Thunderbolt-CMW_v2.7.7.zip (Status 0) Installation aborted.

Can you help me?
[Android Software/Hacking General [Developers Only]] pikachu01:
Replace the updater-binary to one that is compatible to your phone. This is due to your phone using an older CWM version.
[Android Software/Hacking General [Developers Only]] EdgaBimbam:
flashed 80lmk, seems to be working fine on s3 ;D thx
[Android Software/Hacking General [Developers Only]] terdek:
I have Lg e510, can you say me what i should to download? Pls

Inviato dal mio LG-E510 con Tapatalk 2
[Android Software/Hacking General [Developers Only]] pikachu01:
Good to know :)

The updater_binary is in the META_INF folder (you should open up the zip to see it). Use a CWM zip that worked for your phone and use that updater_binary to your phone.
[Android Software/Hacking General [Developers Only]] gGabi:
How to use this? Should I flash it? I get ext4fs error when I try to dual-boot and I want to check data partition.
[Android Software/Hacking General [Developers Only]] gGabi:
Help! I just flashed the zip, took a lot of time and than i restarted the phone. now it won't boot on recovery or download mode :(
[Android Software/Hacking General [Developers Only]] pikachu01:
I've never tried this with dual-booting ROM before. You've probably messed up your partition real bad to make not boot to recovery or download mode. You should send your phone to the nearest service center.

Can you try the USB-Jig first to see if you can go to download mode? Try using another battery in case your battery is just flat-out of juice.
[Android Software/Hacking General [Developers Only]] MR.Volkf:
i was install ThunderBolt-CWM graphics prop addon v1.0.3.zip,but the installation is aborted :(
[Android Software/Hacking General [Developers Only]] pikachu01:
It is not supported. I think I will remove the addons that aren't supported anymore.
[Android Software/Hacking General [Developers Only]] melvinaury:
I think it's the best thing to do.

Sorry for ask, but can you indicate the addons that are not supported any more?