[Nexus S Q&A, Help & Troubleshooting] dman777:
After looking at logcat when trying to run setcpu and having it hang...i'm not sure if it is a permissions issue or not:

D/dalvikvm( 268): GC_EXTERNAL_ALLOC freed 834K, 51% free 4046K/8199K, external 9458K/9661K, paused 87ms
I/ActivityManager( 190): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.mhuang.overclocking/.Setcpu } from pid 268
E/JavaBinder( 190): !!! FAILED BINDER TRANSACTION !!!
I/GLWpThread11( 991): onPause()
I/GLWpThread11( 991): tryAcquireEglSurface()
I/EventLogService( 260): Aggregate from 1298766656038 (log), 1298765466321 (data)
D/dalvikvm( 260): GC_CONCURRENT freed 361K, 49% free 3289K/6407K, external 0K/512K, paused 4ms+5ms
W/ActivityManager( 190): Launch timeout has expired, giving up wake lock!
W/ActivityManager( 190): Activity idle timeout for HistoryRecord{409cabf0 com.mhuang.overclocking/.Setcpu}
D/dalvikvm( 268): GC_EXPLICIT freed 41K, 51% free 4038K/8199K, external 9044K/10541K, paused 94ms
I/Database( 921): sqlite returned: error code = 0, msg = Recovered 328 frames from WAL file /data/data/com.google.android.gm/databases/mailstore.john.doe@ymail.com.db-wal
D/dalvikvm( 921): GC_CONCURRENT freed 183K, 51% free 2746K/5575K, external 0K/0K, paused 3ms+2ms
I/Gmail ( 921): calculateUnknownSyncRationalesAndPurgeInBackground: queueing
I/Gmail ( 921): calculateUnknownSyncRationalesAndPurgeInBackground: running
I/Gmail ( 921): MainSyncRequestProto: lowestBkwdConvoId: 0, highestHandledServerOp: 95681, normalSync: true
D/dalvikvm( 921): GC_CONCURRENT freed 286K, 51% free 2894K/5895K, external 0K/0K, paused 2ms+2ms
D/dalvikvm( 921): GC_EXPLICIT freed 333K, 51% free 2923K/5959K, external 0K/0K, paused 21ms
I/Gmail ( 921): MainSyncRequestProto: lowestBkwdConvoId: 0, highestHandledServerOp: 95701, normalSync: true
W/ResponseProcessCookies( 921): Cookie rejected: "BasicClientCookie[version=0,name=GX,domain=mail.google.com,path=/proxy/gmail/mail,expiry=Sat Mar 12 18:41:28 CST 2011]". Illegal domain attribute "mail.google.com". Domain of origin: "android.clients.google.com"
D/Gmail ( 921): Inserting message 1961836177752366245. synced=true
D/dalvikvm( 921): GC_EXPLICIT freed 110K, 50% free 2993K/5959K, external 0K/0K, paused 50ms
I/Gmail ( 921): MainSyncRequestProto: lowestBkwdConvoId: 0, highestHandledServerOp: 98722, normalSync: true
D/dalvikvm( 578): GC_EXPLICIT freed 73K, 56% free 2531K/5639K, external 0K/0K, paused 84ms
D/dalvikvm( 648): GC_EXPLICIT freed 2K, 54% free 2506K/5379K, external 2725K/2876K, paused 69ms
D/dalvikvm( 836): GC_EXPLICIT freed 588K, 56% free 3519K/7879K, external 2119K/2646K, paused 64ms
D/dalvikvm( 595): GC_EXPLICIT freed 56K, 53% free 2808K/5895K, external 933K/1337K, paused 95ms

Here's what the log looks like when it setcpu does run properly:

D/dalvikvm( 620): GC_EXTERNAL_ALLOC freed 33K, 53% free 2564K/5379K, external 0K/0K, paused 71ms
D/su ( 923): 10095 com.mhuang.overclocking executing 0 /system/bin/sh using shell /system/bin/sh : sh
D/setcpu ( 620): Autodetecting Frequencies
I/GLWpThread10( 280): onPause()
E/su ( 925): Could not set journal mode
W/su ( 925): request rejected (10095->0 /system/bin/sh)
I/GLWpThread10( 280): tryAcquireEglSurface()
D/su ( 924): 10095 com.mhuang.overclocking executing 0 /system/bin/sh using shell /system/bin/sh : sh
D/dalvikvm( 620): GC_EXTERNAL_ALLOC freed 50K, 52% free 2635K/5379K, external 508K/513K, paused 21ms
I/ActivityManager( 190): Displayed com.mhuang.overclocking/.Setcpu: +77ms (total +1m30s953ms)
D/dalvikvm( 269): GC_EXPLICIT freed 182K, 48% free 3971K/7559K, external 8367K/9902K, paused 33ms
D/dalvikvm( 776): GC_EXPLICIT freed 115K, 54% free 2527K/5379K, external 32K/544K, paused 18ms

It seems that the method tryAcquireEglSurface() is ran and has something to do with executing in root.

Can anyone help?

Also, is this the right forum for this or could this go into Development?