mac80211: STA info size
Hi,
I was just reorganising struct sta_info to clarify the locking (will send another mail about that) and noticed that due to the HT stuff, each STA info struct currently (after my reorg) takes 2432 bytes. Almost 2000 of those are in struct sta_ampdu_mlme which is most likely not used for most STAs.
Do you think that is too much memory per station? It'd probably be possible to allocate the sta_ampdu_mlme dynamically when needed, no?
johannes
Quoted 8 lines · Johannes Berg
I was just reorganising struct
sta_infoto clarify the locking (will send another mail about that) and noticed that due to the HT stuff, each STA info struct currently (after my reorg) takes 2432 bytes. Almost 2000 of those are in structsta_ampdu_mlmewhich is most likely not used for most STAs.Do you think that is too much memory per station? It'd probably be possible to allocate the
sta_ampdu_mlmedynamically when needed, no?
My count was closer to 1.5k, but I may have missed something. Either way, that seems a little big to me. A dynamic allocation strategy seems appropriate to me. Anyone disagree?
John
Signature · 2 lines
John W. Linville [email protected]
Quoted 9 lines
Quoted 7 lines
STA info struct currently (after my reorg) takes 2432 bytes. Almost 2000 of those are in struct
sta_ampdu_mlmewhich is most likely not used for most STAs.Do you think that is too much memory per station? It'd probably be possible to allocate the
sta_ampdu_mlmedynamically when needed, no?My count was closer to 1.5k, but I may have missed something.
You need to get pahole :P
http://lwn.net/Articles/206805/
johannes
Quoted 9 lines
Quoted 8 lines
Quoted 6 lines
STA info struct currently (after my reorg) takes 2432 bytes. Almost 2000 of those are in struct
sta_ampdu_mlmewhich is most likely not used for most STAs.Do you think that is too much memory per station? It'd probably be possible to allocate the
sta_ampdu_mlmedynamically when needed, no?My count was closer to 1.5k, but I may have missed something.
I did the check myself and your numbers are correct. i also think dynamic allocation is the way to go. unless something i skipped will pop up i'll do the changes.
Ron