[Oct. 20, 2013][ROM][JB][4.2.2][720p] NexusHD2-JellyBean-CM10.1.3 V2.7 [Kernel: tytung_jellybean_r2]

Android development for HTC HD2/Leo
Moderator: Forum Moderator

Re: [Jul. 7, 2013][ROM][JB][4.2.2][720p] NexusHD2-JellyBean-CM10.1 V2.4 [Kernel: tytung_jellybean_r2]

Postby NYLimited » Sun Jul 21, 2013 5:18 pm

famewolf wrote:For the users asking about using swap space with their HD2 and this rom:


I've verified that the following script works with 2.4 and the HD2. It creates a swapfile on either /data or the external sd....I personally would recommend using the external sd...better to replace a $20 microsd than deal with bad blocks in the nand...IMHO......so no need for a special swap partition....and it appeared to speed up my hd2 nicely. The thread has more info......

http://forum.xda-developers.com/showthr ... ?t=2359182


Question for you. The notes in that thread indicate

Note: JB users will likely have to choose /data for their swapfile location so as to avoid swapon/swapoff errors


For those of us using DataOnEXT method this suggests the ext4 partition on the card, correct?

Cheers!
Image


MY DEVICES: show
  • LG-H901 (V10) - Stock, rooted, TWRP
  • Google Nexus 4 - Stock 5.1.1, Franco kernel, TWRP - Retired
  • Google Nexus 7 - 2012 3G model, Stock 5.1.1, Franco kernel, TWRP - Retired
  • HTC HD2 - Retired
  • HTC P4350 (TMO Wing) - Retired


User avatar
NYLimited
Forum Moderator
 
Posts: 395
Joined: Mon Jun 24, 2013 5:01 pm
Location: 40.75659° N 73.98626° W
Country: United States (us)
Has thanked: 128 times
Been thanked: 255 times

Advertisement
 

Re: [Jul. 7, 2013][ROM][JB][4.2.2][720p] NexusHD2-JellyBean-CM10.1 V2.4 [Kernel: tytung_jellybean_r2]

Postby famewolf » Sun Jul 21, 2013 5:37 pm

NYLimited wrote:
Question for you. The notes in that thread indicate



For those of us using DataOnEXT method this suggests the ext4 partition on the card, correct?


I specifically mentioned in my post to ignore the note about JB. :P If you read the thread you'll see it wasn't applicable however I honestly don't know whether it will use actual /data partition or the dataonext....good question to ask in the thread. ;)
famewolf
Junior Member
 
Posts: 20
Joined: Tue Jun 25, 2013 3:57 am
Has thanked: 8 times
Been thanked: 18 times

Re: [Jul. 7, 2013][ROM][JB][4.2.2][720p] NexusHD2-JellyBean-CM10.1 V2.4 [Kernel: tytung_jellybean_r2]

Postby NYLimited » Sun Jul 21, 2013 5:42 pm

NYLimited wrote:For those of us using DataOnEXT method this suggests the ext4 partition on the card, correct?

famewolf wrote:I specifically mentioned in my post to ignore the note about JB. :P If you read the thread you'll see it wasn't applicable however I honestly don't know whether it will use actual /data partition or the dataonext....good question to ask in the thread. ;)


I read the OP in the thread which is where my question originated from.
I did see your post later (and responded to it since) but the OP was not clear on that. :)

Cheers!
Image


MY DEVICES: show
  • LG-H901 (V10) - Stock, rooted, TWRP
  • Google Nexus 4 - Stock 5.1.1, Franco kernel, TWRP - Retired
  • Google Nexus 7 - 2012 3G model, Stock 5.1.1, Franco kernel, TWRP - Retired
  • HTC HD2 - Retired
  • HTC P4350 (TMO Wing) - Retired


User avatar
NYLimited
Forum Moderator
 
Posts: 395
Joined: Mon Jun 24, 2013 5:01 pm
Location: 40.75659° N 73.98626° W
Country: United States (us)
Has thanked: 128 times
Been thanked: 255 times

Re: [Jul. 7, 2013][ROM][JB][4.2.2][720p] NexusHD2-JellyBean-CM10.1 V2.4 [Kernel: tytung_jellybean_r2]

Postby famewolf » Sun Jul 21, 2013 6:27 pm

If you are going to use the swap file script I mentioned earlier you may also want to ignore his "recommended sizes" as it recommended 209mb to me and I quickly filled that on my old hd2. I ended up bumping my cache to 512mb to match the memory and so far the most I've used was 383mb.
famewolf
Junior Member
 
Posts: 20
Joined: Tue Jun 25, 2013 3:57 am
Has thanked: 8 times
Been thanked: 18 times

Re: R: [Jul. 7, 2013][ROM][JB][4.2.2][720p] NexusHD2-JellyBean-CM10.1 V2.4 [Kernel: tytung_jellybean_r2]

Postby ionbasa » Sun Jul 21, 2013 6:55 pm

To everyone who has a swap partition I would recommend this scrip:
zenida wrote:Sorry I didn't replied before because I was from tapatalk. Anyway I can't find the OP where I downloaded the script, but you can download it from here: https://docs.google.com/file/d/0B4NkpgimHfv_c2pfME9jeHdzVXM/edit

NOTE:
This script works for NexusHD2 JellyBean 10.1 only!!!
If you want to use it on other ROMs, you need to modify the script.
All credits goes to the orginal author ;)


The other one posted creates a swap file, not letting you use an actual partition on the SD card, therefore resulting in a slight bottleneck. But this script seems to work perfectly if you have a swap partition. My sd card is formatted as follows: Fat32 / EXT4 / SWAP. You should be able to recreate this in either CWM or TWRP.
ionbasa
Newly Registered Member
 
Posts: 2
Joined: Fri Jul 12, 2013 4:11 am
Country: United States (us)
Has thanked: 2 times
Been thanked: 1 time

Re: [Jul. 7, 2013][ROM][JB][4.2.2][720p] NexusHD2-JellyBean-CM10.1 V2.4 [Kernel: tytung_jellybean_r2]

Postby devilpera64 » Sun Jul 21, 2013 8:00 pm

Hi :)

Yesterday i decided to swap Android 4.2.2 from old 4.0.4

The first time i used NAND option, without any EXT partition on External SD. But now, i decided to upgrade, then i tried to format my SD Class 6 in EXT4 using minitool partition.

The problem:
I've operated a Task29, then i choose CLK partitioning (300Mb) on HD2 Toolkit and i've installed CWM touch 8 (5Mb). But if i install this fantastic ROM on EXT4 (1024Mb), internal memory red is set up to 0,00b. So i returned back to Ext3, formatted using CWM, so the problem won't exist.

What's the problem?

However now i'm on EXT3. Do you suggest to switch to EXT4? (if i backup and restore on new partition - DATAonEXT - do you think that's would ok?)

Thanks a lot! ;)
devilpera64
Newly Registered Member
 
Posts: 2
Joined: Sun Jul 21, 2013 7:51 pm
Country: Italy (it)
Has thanked: 1 time
Been thanked: 0 time

Re: R: [Jul. 7, 2013][ROM][JB][4.2.2][720p] NexusHD2-JellyBean-CM10.1 V2.4 [Kernel: tytung_jellybean_r2]

Postby NYLimited » Sun Jul 21, 2013 8:28 pm

ionbasa wrote:The other one posted creates a swap file, not letting you use an actual partition on the SD card, therefore resulting in a slight bottleneck. But this script seems to work perfectly if you have a swap partition. My sd card is formatted as follows: Fat32 / EXT4 / SWAP. You should be able to recreate this in either CWM or TWRP.


[ DISCLAIMER ] I am not a swap expert so these are simply common sense ideas about the subject....


As I understand it, much of the discourse on swap (partition vs file) comes from the hard drive concepts and original Linux. Keep in mind that we would not be using a hard drive, but rather an SD card with charasteristics quite different from an HD.

In my opinion it doesn't make a lot of difference wether you use a single, contiguous swap file or a partition.

Creating a "normal" file with dd will allocate the file (if at all possible) in a single run, while creating a sparse file will tell you that you have a 10GB file lying around but not actually using up all the space.

So, if the swapfile isn't fragmented, it's exactly as if there were a swap partition at its same location. Or put another way, you'd get identical performance if you used a swap partition raw, or formatted it with a filesystem and then created a swapfile that filled all space, since either way there is a contiguous region used for swapping, which the kernel uses directly.

Thus if we create the swapfile when the filesystem is fresh or has lots of contiguous space (thus ensuring it's not fragmented and at the beginning of the volume), performance should be identical to having a swap partition just before the volume.

On Linux, if the swapfile is created unfragmented, and never expanded, it cannot become fragmented, at least with normal filesystems like ext3/4. It will always use the same blocks, which are contiguous.

Internally, the Linux kernel will access the underlying blocks of a swap file more or less directly.

Cheers!
Image


MY DEVICES: show
  • LG-H901 (V10) - Stock, rooted, TWRP
  • Google Nexus 4 - Stock 5.1.1, Franco kernel, TWRP - Retired
  • Google Nexus 7 - 2012 3G model, Stock 5.1.1, Franco kernel, TWRP - Retired
  • HTC HD2 - Retired
  • HTC P4350 (TMO Wing) - Retired


User avatar
NYLimited
Forum Moderator
 
Posts: 395
Joined: Mon Jun 24, 2013 5:01 pm
Location: 40.75659° N 73.98626° W
Country: United States (us)
Has thanked: 128 times
Been thanked: 255 times

Re: [Jul. 7, 2013][ROM][JB][4.2.2][720p] NexusHD2-JellyBean-CM10.1 V2.4 [Kernel: tytung_jellybean_r2]

Postby famewolf » Sun Jul 21, 2013 9:40 pm

Since we are talking about flash memory and not a physical HD that has to spin, most modern documentation states that all areas of the flash media will be accessed at the same speed. That being the case even if it was fragmented performance should be the same.....I believe that was one of the reasons they stated to never defrag flash media since it's both unnecessary and it shortens the life of the media.
famewolf
Junior Member
 
Posts: 20
Joined: Tue Jun 25, 2013 3:57 am
Has thanked: 8 times
Been thanked: 18 times

Re: [Jul. 7, 2013][ROM][JB][4.2.2][720p] NexusHD2-JellyBean-CM10.1 V2.4 [Kernel: tytung_jellybean_r2]

Postby NYLimited » Sun Jul 21, 2013 10:00 pm

devilpera64 wrote:Hi :)

Yesterday i decided to swap Android 4.2.2 from old 4.0.4

The first time i used NAND option, without any EXT partition on External SD. But now, i decided to upgrade, then i tried to format my SD Class 6 in EXT4 using minitool partition.

The problem:
I've operated a Task29, then i choose CLK partitioning (300Mb) on HD2 Toolkit and i've installed CWM touch 8 (5Mb). But if i install this fantastic ROM on EXT4 (1024Mb), internal memory red is set up to 0,00b. So i returned back to Ext3, formatted using CWM, so the problem won't exist.

What's the problem?

However now i'm on EXT3. Do you suggest to switch to EXT4? (if i backup and restore on new partition - DATAonEXT - do you think that's would ok?)

Thanks a lot! ;)


I don't know CWM Recovery 8 - never tried it.
I do know that old ones would only format ext3 partitions, not ext4.

Perhaps you could try formatting it with another tool (ideas listed in the SD thread in my signature).

In any event, while I personally prefer ext4 I suspect that ext3 will also work okay for you.

Cheers!
Image


MY DEVICES: show
  • LG-H901 (V10) - Stock, rooted, TWRP
  • Google Nexus 4 - Stock 5.1.1, Franco kernel, TWRP - Retired
  • Google Nexus 7 - 2012 3G model, Stock 5.1.1, Franco kernel, TWRP - Retired
  • HTC HD2 - Retired
  • HTC P4350 (TMO Wing) - Retired


User avatar
NYLimited
Forum Moderator
 
Posts: 395
Joined: Mon Jun 24, 2013 5:01 pm
Location: 40.75659° N 73.98626° W
Country: United States (us)
Has thanked: 128 times
Been thanked: 255 times

Re: [Jul. 7, 2013][ROM][JB][4.2.2][720p] NexusHD2-JellyBean-CM10.1 V2.4 [Kernel: tytung_jellybean_r2]

Postby famewolf » Sun Jul 21, 2013 11:23 pm

@tytung

On one of my other devices I changed the adb device id on bootup via a script in /etc/init.d because it conflicted with the hd2 one....at that time I noticed the path /sys/devices/virtual/android_usb/android0 does not exist on the hd2 rom. Is the information such as iSerial stored somewhere else?
famewolf
Junior Member
 
Posts: 20
Joined: Tue Jun 25, 2013 3:57 am
Has thanked: 8 times
Been thanked: 18 times

PreviousNext

Return to HD2 Android Development

Who is online

Users browsing this forum: No registered users and 0 guests

cron